OFFSET
0,4
COMMENTS
The subsequence of unique primes begins 3, 31, -12289, -65537. What is the next prime in the sequence?
The next prime in the sequence is -113249697660929, followed by 289815643220546158591. - Harvey P. Dale, May 15 2016
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-6,8,-4).
FORMULA
a(n) = Sum_{i=0..n} A007420(i) = Sum_{i=0..n} a(n+1) = 2*a(i)-4*a(i-1)+4*a(i-2).
G.f.: -x^2*(256*x^11-512*x^10+384*x^9-192*x^8+64*x^7-1) / ((x-1)*(4*x^3-4*x^2+2*x-1)). - Colin Barker, Apr 20 2013
MATHEMATICA
LinearRecurrence[{3, -6, 8, -4}, {0, 0, 1, 3}, 50] (* Harvey P. Dale, May 15 2016 *)
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Jonathan Vos Post, Dec 28 2010
EXTENSIONS
Corrected by Harvey P. Dale, May 15 2016
STATUS
approved