|
|
A019475
|
|
Define the sequence S(a(0),a(1)) by a(n+2) is the least integer such that a(n+2)/a(n+1) > a(n+1)/a(n) for n >= 0. This is S(2,10).
|
|
1
|
|
|
2, 10, 51, 261, 1336, 6839, 35009, 179212, 917391, 4696149, 24039712, 123059927, 629947050, 3224715759, 16507406022, 84501851928, 432567234958, 2214323218841, 11335179646638, 58025087091309, 297031969224468, 1520514576781740, 7783554693597965
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
MAPLE
|
a:= proc(n) option remember;
`if`(n<2, [2, 10][n+1], floor(a(n-1)^2/a(n-2))+1)
end:
|
|
MATHEMATICA
|
a[n_] := a[n] = Switch[n, 0, 2, 1, 10, _, 1 + Floor[a[n-1]^2/a[n-2]]];
|
|
PROG
|
(PARI) S(a0, a1, maxn) = a=vector(maxn); a[1]=a0; a[2]=a1; for(n=3, maxn, a[n]=a[n-1]^2\a[n-2]+1); a
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|