login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A132270 a(n) = floor((n^7-1)/(7*n^6)), which is the same as integers repeated 7 times. 12

%I

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

%T 4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,

%U 9,9,10,10,10,10,10,10

%N a(n) = floor((n^7-1)/(7*n^6)), which is the same as integers repeated 7 times.

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

%F Also, floor[(n^7-n^6)/(7n^6-6n^5)] will produce this sequence as well. - _Mohammad K. Azarian_, Nov 08 2007

%F a(n) = -1 + Sum_{k=0..n}{1-(k^6 mod 7)]}, with n>=0 - _Paolo P. Lava_, Nov 27 2007

%F G.f.: x^8/(1-x-x^7+x^8). - _Robert Israel_, Feb 02 2015

%p A132270:=n->floor((n-1)/7); seq(A132270(n), n=1..100); # _Wesley Ivan Hurt_, Dec 10 2013

%t Table[Floor[(n - 1)/7], {n, 100}] (* _Wesley Ivan Hurt_, Dec 10 2013 *)

%t Table[PadRight[{},7,n],{n,0,10}]//Flatten (* or *) LinearRecurrence[ {1,0,0,0,0,0,1,-1},{0,0,0,0,0,0,0,1},100] (* _Harvey P. Dale_, Jun 08 2017 *)

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

%Y Cf. A004526, A002264, A002265, A002266, A054895.

%K nonn,easy

%O 1,15

%A _Mohammad K. Azarian_, Nov 06 2007

%E Offset corrected by _Mohammad K. Azarian_, Nov 19 2008

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 4 08:18 EDT 2020. Contains 334825 sequences. (Running on oeis4.)