A275615 Decimal expansion of 22/111.
1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8, 1, 9, 8
Offset: 0
Examples
0.198198198198198198198198198198198198198198198198198198198...
Programs
-
Mathematica
First@ RealDigits@ N[22/111, 120] (* or *) PadRight[{}, 120, {1, 9, 8}] (* or *) FixedPoint[Total@ IntegerDigits@ # &, #] & /@ Table[(n + 1)^6 - n^6, {n, 0, 120}] (* Michael De Vlieger, Aug 04 2016 *)
-
PARI
a(n) = my(x=[1, 9, 8]); x[n%3+1] \\ Felix Fröhlich, Aug 04 2016
Formula
a(n) = 6 - 5*cos(2*n*Pi/3) + sin(2*n*Pi/3)/sqrt(3). - Wesley Ivan Hurt, Oct 04 2018
Comments