Sequence where each term is the sum of previous k terms
Filed under Aspiring Minds
The question
Print a sequence of size n where every term is the sum of the previous k terms.
No write-up yet. Related questions below have one.
Related Aspiring Minds questions
Collected from public candidate posts and coding forums. Updated Nov 2026.