[go: up one dir, main page]

login
A062557
2n-1 1's followed by a 2.
2
1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
OFFSET
0,2
COMMENTS
Is the number .12111211111211111112... irrational?
FORMULA
a(n) = 1 + A005369(n+1). - Wesley Ivan Hurt, May 26 2015
MAPLE
A062557:=n->1+floor(sqrt(n+2)+1/2)-floor(sqrt(n+1)+1/2): seq(A062557(n), n=0..100); # Wesley Ivan Hurt, May 26 2015
MATHEMATICA
Table[1 + Floor[Sqrt[n + 2] + 1/2] - Floor[Sqrt[n + 1] + 1/2], {n, 0,
100}] (* Wesley Ivan Hurt, May 26 2015 *)
PROG
(PARI) v=[]; for(n=0, 200, v=concat(v, 1+issquare(5+4*n))); v
(Magma) [1+Floor(Sqrt(n+2)+1/2)-Floor(Sqrt(n+1)+1/2) : n in [0..100]]; // Wesley Ivan Hurt, May 26 2015
CROSSREFS
Sequence in context: A332770 A113120 A154843 * A276438 A338274 A210960
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Jul 02 2001
STATUS
approved