A066344 Beatty sequence for log_5(10).
1, 2, 4, 5, 7, 8, 10, 11, 12, 14, 15, 17, 18, 20, 21, 22, 24, 25, 27, 28, 30, 31, 32, 34, 35, 37, 38, 40, 41, 42, 44, 45, 47, 48, 50, 51, 52, 54, 55, 57, 58, 60, 61, 62, 64, 65, 67, 68, 70, 71, 72, 74, 75, 77, 78, 80, 81, 82, 84, 85, 87, 88, 90, 91, 92, 94, 95, 97, 98, 100
Offset: 1
Links
- Harry J. Smith, Table of n, a(n) for n = 1..1000
- Eric Weisstein's World of Mathematics, Beatty Sequence.
- Index entries for sequences related to Beatty sequences.
Programs
-
Mathematica
Floor[Range[100]*Log[5, 10]] (* Paolo Xausa, Jul 08 2024 *)
-
PARI
{ l=log(10)/log(5); for (n=1, 1000, a=floor(n*l); write("b066344.txt", n, " ", a) ) } \\ Harry J. Smith, Feb 11 2010
-
Python
from sympy import integer_log def A066344(n): return integer_log(1<
Chai Wah Wu, Sep 08 2024
Formula
a(n) = floor(n*log_5(10)).
Comments