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!)
A222260 Lexicographically earliest injective sequence of nonnegative integers such that the sum of 10 consecutive terms is always divisible by 10. 3
0, 1, 2, 3, 4, 5, 6, 7, 8, 14, 10, 11, 12, 13, 24, 15, 16, 17, 18, 34, 20, 21, 22, 23, 44, 25, 26, 27, 28, 54, 30, 31, 32, 33, 64, 35, 36, 37, 38, 74, 40, 41, 42, 43, 84, 45, 46, 47, 48, 94, 50, 51, 52, 53, 104, 55, 56, 57, 58, 114, 60, 61, 62, 63, 124, 65, 66, 67, 68, 134, 70, 71, 72, 73, 144, 75, 76, 77, 78, 154, 80, 81, 82, 83, 164, 85, 86, 87, 88, 174 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

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

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 + 6*x^8)/((1 - x)*(1 + x + x^2 + x^3 + x^4))^2.

a(n) = n unless n=4 (mod 5) in which case a(n) = 2n-4.

CROSSREFS

Cf. A222256 - A222259, A222261.

Sequence in context: A090144 A162572 A250476 * A032991 A032870 A023763

Adjacent sequences:  A222257 A222258 A222259 * A222261 A222262 A222263

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 23 12:03 EDT 2021. Contains 345401 sequences. (Running on oeis4.)