History of Mathematics
in India IIT Gandhinagar, home

Project Brahmagupta · problem 59

Nārāyaṇa’s Additive Sequence

In the Gaṇitakaumudī (1356) Nārāyaṇa Paṇḍita defines a sāmāsika paṅkti, an additive sequence in which each term is the sum of the previous qq terms, and uses it to count arrangements. Take q=5q = 5: let s1=1s_1 = 1 and, for n≥2n \ge 2, sn=sn−1+sn−2+sn−3+sn−4+sn−5s_n = s_{n-1} + s_{n-2} + s_{n-3} + s_{n-4} + s_{n-5}, where any term with index less than 11 is taken to be 00. The sequence begins 1,1,2,4,8,16,31,…1, 1, 2, 4, 8, 16, 31, \ldots. Find s1000s_{1000} modulo 109+710^9 + 7.

Try it

Check an answer

Enter a number, or a decimal where the problem asks for one. Only a hash of the answer is kept on this page.

Problem 59 of Project Brahmagupta, published under the Creative Commons Attribution 4.0 licence. No solutions are published.