OFFSET
0,9
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,1,1,1,1,1,1).
FORMULA
a(n+7) = a(n) + a(n+1) + a(n+2) + a(n+3) + a(n+4) + a(n+5) + a(n+6).
MATHEMATICA
LinearRecurrence[Table[1, {7}], {0, 0, 1, 0, 0, 0, 0}, 40] (* Michael De Vlieger, Dec 09 2014 *)
PROG
(J) (see www.jsoftware.com) First construct the generating matrix
[M=: (#.@}: + {:)\"1&.|: <:/~i.7
1 1 1 1 1 1 1
1 2 2 2 2 2 2
2 3 4 4 4 4 4
4 6 7 8 8 8 8
8 12 14 15 16 16 16
16 24 28 30 31 32 32
32 48 56 60 62 63 64
Given that matrix, one can produce the first 7*150 numbers by
, M(+/ . *)^:(i.150) 0 0 1 0 0 0 0x
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Arie Bos, Dec 07 2014
STATUS
approved