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!)
A222261 Lexicographically earliest injective sequence of positive integers such that the sum of 10 consecutive terms is always divisible by 10. 5
1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 11, 12, 13, 14, 25, 16, 17, 18, 19, 35, 21, 22, 23, 24, 45, 26, 27, 28, 29, 55, 31, 32, 33, 34, 65, 36, 37, 38, 39, 75, 41, 42, 43, 44, 85, 46, 47, 48, 49, 95, 51, 52, 53, 54, 105, 56, 57, 58, 59, 115, 61, 62, 63, 64, 125, 66, 67, 68, 69, 135, 71, 72, 73, 74, 145, 76, 77, 78, 79, 155, 81 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
E. Angelini, k-chunks sum and division by k, post to the SeqFan list, Mar 22 2013
FORMULA
a(n) = 2 a(n-5) - a(n-10).
G.f.: x*(1 + 2*x + 3*x^2 + 4*x^3 + 5*x^4 + 4*x^5 + 3*x^6 + 2*x^7 + x^8 + 5*x^9)/((1 - x)*(1 + x + x^2 + x^3 + x^4))^2.
a(n)=n unless n=0 (mod 5) in which case a(n)=2n-5.
MATHEMATICA
LinearRecurrence[{0, 0, 0, 0, 2, 0, 0, 0, 0, -1}, {1, 2, 3, 4, 5, 6, 7, 8, 9, 15}, 90] (* Harvey P. Dale, Jul 31 2022 *)
CROSSREFS
Sequence in context: A033081 A032579 A151543 * A242415 A242420 A242419
KEYWORD
nonn
AUTHOR
Eric Angelini and M. F. Hasler, Mar 23 2013
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 15 06:57 EDT 2024. Contains 372538 sequences. (Running on oeis4.)