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!)
A002266 Integers repeated 5 times. 52

%I #71 Dec 14 2023 05:57:53

%S 0,0,0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,

%T 6,7,7,7,7,7,8,8,8,8,8,9,9,9,9,9,10,10,10,10,10,11,11,11,11,11,12,12,

%U 12,12,12,13,13,13,13,13,14,14,14,14,14,15,15,15,15,15,16,16,16

%N Integers repeated 5 times.

%C For n > 3, number of consecutive "11's" after the (n+3) "1's" in the continued fraction for sqrt(L(n+2)/L(n)) where L(n) is the n-th Lucas number A000032 (see example). E.g., the continued fraction for sqrt(L(11)/L(9)) is [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 58, 2, 4, 1, ...] with 12 consecutive ones followed by floor(11/5)=2 elevens. - _Benoit Cloitre_, Jan 08 2006

%C Complement of A010874, since A010874(n) + 5*a(n) = n. - _Hieronymus Fischer_, Jun 01 2007

%C From _Paul Curtz_, May 13 2020: (Start)

%C Main N-S vertical of the pentagonal spiral built with this sequence is A001105:

%C 21

%C 20 15 15

%C 20 14 10 10 15

%C 20 14 9 6 6 10 15

%C 20 14 9 5 3 3 6 10 15

%C 20 14 9 5 2 1 1 3 6 10 16

%C 19 14 9 5 2 0 0 0 1 3 6 11 16

%C 19 13 9 5 2 0 0 1 3 7 11 16

%C 19 13 8 5 2 2 1 4 7 11 16

%C 19 13 8 4 4 4 4 7 11 16

%C 19 13 8 8 8 7 7 11 17

%C 18 13 12 12 12 12 12 17

%C 18 18 18 18 17 17 17

%C The main S-N vertical and the next one are A000217. (End)

%H <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,0,0,1,-1).

%F a(n) = floor(n/5), n >= 0.

%F G.f.: x^5/((1-x)(1-x^5)).

%F a(n) = (n - A010874(n))/5. - _Hieronymus Fischer_, May 29 2007

%F For n >= 5, a(n) = floor(log_5(5^a(n-1) + 5^a(n-2) + 5^a(n-3) + 5^a(n-4) + 5^a(n-5))). - _Vladimir Shevelev_, Jun 22 2010

%F Sum_{n>=5} (-1)^(n+1)/a(n) = log(2) (A002162). - _Amiram Eldar_, Sep 30 2022

%p A002266:=n->floor(n/5); seq(A002266(n), n=0..100); # _Wesley Ivan Hurt_, Dec 10 2013

%t Table[Floor[n/5], {n,0,20}] (* _Wesley Ivan Hurt_, Dec 10 2013 *)

%t Table[{n,n,n,n,n},{n,0,20}]//Flatten (* _Harvey P. Dale_, Jun 17 2022 *)

%o (Sage) [floor(n/5) - 1 for n in range(5,88)] # _Zerinvary Lajos_, Dec 01 2009

%o (Haskell)

%o a002266 = (`div` 5)

%o a002266_list = [0,0,0,0,0] ++ map (+ 1) a002266_list

%o -- _Reinhard Zumkeller_, Nov 27 2012

%o (PARI) a(n)=n\5 \\ _Charles R Greathouse IV_, Dec 10 2013

%o (Python)

%o def A002266(n): return n//5 # _Chai Wah Wu_, Nov 08 2022

%Y a(n) = A010766(n, 5).

%Y Cf. A002162, A008648, A004526, A002264, A002265, A010761, A010762, A110532, A110533, A010872, A010873, A010874.

%Y Partial sums: A130520.

%K nonn,easy

%O 0,11

%A _N. J. A. Sloane_

%E Incorrect formula removed by _Ridouane Oudra_, Oct 16 2021

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 April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)