login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010886 Period 7: repeat [1, 2, 3, 4, 5, 6, 7]. 1
1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

Partial sums are given by A130485(n)+n+1. - Hieronymus Fischer, Jun 08 2007

1234567/9999999 = 0.123456712345671234567... - Eric Desbiaux, Nov 03 2008

Terms of the simple continued fraction of 1393/(sqrt(29964677)-4502). - Paolo P. Lava, Feb 16 2009

LINKS

Table of n, a(n) for n=0..80.

Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,1).

FORMULA

a(n) = 1 + (n mod 7). - Paolo P. Lava, Nov 21 2006

a(n) = A010876(n) + 1. G.f.: g(x)=(Sum_{k=0..6} (k+1)*x^k)/(1-x^7). Also: g(x)=(7*x^8-8*x^7+1)/((1-x^7)*(1-x)^2). - Hieronymus Fischer, Jun 08 2007

From Wesley Ivan Hurt, Jul 18 2016: (Start)

a(n) = a(n-7) for n>6.

a(n) = 1 - 6*floor(n/7) + Sum_{k=1..6} floor((n + k)/7). (End)

MAPLE

seq(op([1, 2, 3, 4, 5, 6, 7]), n=0..20); # Wesley Ivan Hurt, Jul 18 2016

MATHEMATICA

PadRight[{}, 100, {1, 2, 3, 4, 5, 6, 7}] (* Wesley Ivan Hurt, Jul 18 2016 *)

PROG

(PARI) a(n)=n%7+1 \\ Charles R Greathouse IV, Jul 13 2016

(MAGMA) &cat [[1, 2, 3, 4, 5, 6, 7]^^20]; // Wesley Ivan Hurt, Jul 18 2016

CROSSREFS

Cf. A010872, A010873, A010874, A010875, A010877, A004526, A002264, A002265, A002266.

Cf. A177160 (decimal expansion of (4502+sqrt(29964677))/6961).

Sequence in context: A277546 A190597 A053843 * A002376 A055401 A053829

Adjacent sequences:  A010883 A010884 A010885 * A010887 A010888 A010889

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 20 23:39 EDT 2018. Contains 316405 sequences. (Running on oeis4.)