The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A081129 Differences of Beatty sequence for cube root of 3. 3
1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = floor((n+1)*3^(1/3)) - floor(n*3^(1/3)).
MATHEMATICA
Differences[Floor[Range[0, 110]Surd[3, 3]]] (* Harvey P. Dale, Apr 06 2022 *)
PROG
(PARI) a(n)=floor((n+1)*3^(1/3))-floor(n*3^(1/3))
(Magma)
A081129:= func< n | Floor((n+1)*3^(1/3)) - Floor(n*3^(1/3)) >;
[A081129(n): n in [0..120]]; // G. C. Greubel, Jan 15 2024
(SageMath)
def A081129(n): return floor((n+1)*3^(1/3)) - floor(n*3^(1/3))
[A081129(n) for n in range(121)] # G. C. Greubel, Jan 15 2024
CROSSREFS
Sequence in context: A356112 A232740 A188512 * A022934 A107450 A341765
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 16 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 26 23:01 EDT 2024. Contains 372847 sequences. (Running on oeis4.)