← All problemsSign in

Triconacci

Chef has been assigned a math problem to find the $Nth$ number of a series in which each term is the summation of last three terms in the series. $Nth$ term is the sum of $(N-1)th$ term, $(N-2)th$ term and $(N-3)th$ term. Provided the first 3 terms, chef has to calculate the term at $Nth$ position but since $N$ can be very large, it would be very time consuming to do by hand. Chef has promised h

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start