OFFSET
1,1
COMMENTS
a(22) is too large to display here. It has 53 digits and is the 180th term in A060455.
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..34
MATHEMATICA
a={1, 1, 1, 1, 1, 1, 1}; step=7; lst={}; For[n=step, n<=1000, n++, sum=Plus@@a; If[PrimeQ[sum], AppendTo[lst, sum]]; a=RotateLeft[a]; a[[7]]=sum]; lst
With[{c=PadRight[{}, 7, 1]}, Select[LinearRecurrence[c, c, 150], PrimeQ]] (* Harvey P. Dale, May 08 2015 *)
PROG
(PARI) lista(nn) = {gf = ( -1+x^2+2*x^3+3*x^4+4*x^5+5*x^6 ) / ( -1+x+x^2+x^3+x^4+x^5+x^6+x^7 ); for (n=0, nn, if (isprime(p=polcoeff(gf+O(x^(n+1)), n)), print1(p, ", ")); ); } \\ Michel Marcus, Jan 11 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Price, Dec 30 2014
STATUS
approved