Fibonacci Inspiration
CodeChefOpen on judge ↗
Mr. Y has created a new series similar to fibonacci series. $f(N) = a \cdot f(N-1) + b \cdot f(N-2) + c \cdot f(N-3) + d \cdot f(N-4) + e$ The first $4$ term of this series are $0$, $1$, $2$, $3$ respectively. You have to find the $N^{th}$ term of the given series. Since the answer may be very large, output it modulo $10^9 + 7$. ### Input: - First line will contain $T$,
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start