A064720 A Beatty sequence for 3^i + 3^-i + 1.
2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 128, 130, 132, 134
Offset: 1
Links
- Harry J. Smith, Table of n, a(n) for n = 1..2000
Crossrefs
Cf. A064719.
Programs
-
Mathematica
a = Chop[ N[ 3^I + 3^-I +1, 36], 10^-40]; Table[ Floor[n*a/(a-1)], {n, 1, 75} ]
-
PARI
{ default(realprecision, 100); b=real(3^I + 3^-I) + 1; b=b/(b - 1); for (n = 1, 2000, write("b064720.txt", n, " ", floor(n*b)) ) } \\ Harry J. Smith, Sep 23 2009
Comments