A021031 Decimal expansion of 1/27.
0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7, 0, 3, 7
Offset: 0
Examples
0.037037037037037037037037037037037037037...
Links
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 1).
Programs
-
Mathematica
RealDigits[1/27, 10, 108][[1]] (* Alonso del Arte, Feb 26 2015 *)
Formula
From Bruno Berselli, Sep 24 2010: (Start)
G.f.: x*(3+7*x)/(1-x^3).
a(n) - a(n-3) = 0 for n > 2.
a(n) = A175833(n) - 4 = 4*(n-3*floor(n/3)) - (1 - (-1)^(n-3*floor((n+1)/3)))/2.
(End)