|
|
A069103
|
|
a(1) = 1; a(2) = 1; a(n) = prime(a(n-1)) + prime(a(n-2)) if n > 2.
|
|
6
|
|
|
1, 1, 4, 9, 30, 136, 882, 7626, 84448, 1159912, 19226112, 376464500, 8556370952, 222510227460, 6542050923204, 215278202878118, 7860760142260830, 316135809596510856
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
EXAMPLE
|
a(3) = prime(a(2)) + prime(a(1)) = 2 + 2 = 4.
|
|
MATHEMATICA
|
f[x_] := Prime[f[x-1]]+Prime[f[x-2]] {f[1]=1, f[2]=1}; Table[f[w], {w, 1, 15}]
nxt[{a_, b_}]:={b, Prime[a]+Prime[b]}; Join[{1}, Union[Flatten[NestList[nxt, {1, 1}, 13]]]] (* Harvey P. Dale, Sep 17 2013 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|