login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A018906 Define the Shallit sequence S(a_0,a_1) by a_{n+2} is the least integer > a_{n+1}^2/a_n for n >= 0. This is S(2,6). 2
2, 6, 19, 61, 196, 630, 2026, 6516, 20957, 67403, 216786, 697242, 2242518, 7212542, 23197479, 74609345, 239963764, 771788146, 2482278709, 7983677414, 25677658524, 82586271099, 265619708576, 854304579262, 2747673800490, 8837259564290, 28423008798464 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
D. W. Boyd, Some integer sequences related to the Pisot sequences, Acta Arithmetica, 34 (1979), 295-305.
D. W. Boyd, Linear recurrence relations for some generalized Pisot sequences, Advances in Number Theory ( Kingston ON, 1991) 333-340, Oxford Sci. Publ., Oxford Univ. Press, New York, 1993.
Jeffrey Shallit, Problem B-686, Fib. Quart., 29 (1991), 85.
FORMULA
a(n) = [ a(n-1)^2/a(n-2)+1 ].
MAPLE
a:= proc(n) option remember; `if`(n<2, [2, 6][n+1],
1 +floor(a(n-1)^2/a(n-2)))
end:
seq(a(n), n=0..40); # Alois P. Heinz, May 05 2014
MATHEMATICA
a[0]=2; a[1]=6; a[n_] := a[n] = Floor[a[n-1]^2/a[n-2]+1]; Table[a[n], {n, 0, 40}] (* Jean-François Alcover, Mar 30 2015 *)
PROG
(PARI) a1n=concat([ 2, 6 ], vector(28)); a(n)=a1n[ n+1 ]; for(n=2, 29, a1n[ n+1 ]=1+floor(a(n-1)^2/a(n-2)))
CROSSREFS
There has been some confusion between A018906 and A014010. I think the descriptions are correct now, thanks to Michael Somos.
Sequence in context: A001169 A187276 A022041 * A014010 A022015 A138747
KEYWORD
nonn
AUTHOR
EXTENSIONS
An incorrect g.f. was deleted by N. J. A. Sloane, Sep 16 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:51 EDT 2024. Contains 371967 sequences. (Running on oeis4.)