login
A122263
a(n) = 2*a(n-1)-a(n-2)+2*(Prime[n+1]-Prime[n]).
0
2, 3, 8, 21, 38, 63, 92, 129, 178, 231, 296, 369, 446, 531, 628, 737, 850, 975, 1108, 1245, 1394, 1551, 1720, 1905, 2098, 2295, 2500, 2709, 2926, 3171
OFFSET
1,1
MATHEMATICA
f[1] = 2; f[2] = 3; f[n_] := f[n] = 2*f[n - 1] - f[n - 2] + 2*(Prime[n + 1] - Prime[n]); Table[f[n], {n, 1, 30}]
CROSSREFS
Sequence in context: A185381 A251608 A288252 * A132730 A004790 A245464
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Oct 18 2006
EXTENSIONS
Edited by N. J. A. Sloane, Oct 23 2006
STATUS
approved