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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A289283 Starting with a(1) = 1, a(n) = smallest nonnegative integer not yet in the sequence such that the last digit of a(n-1) plus the first digit of a(n) is equal to 5. The digit 0 is not allowed. 6
1, 4, 11, 41, 42, 3, 2, 31, 43, 21, 44, 12, 32, 33, 22, 34, 13, 23, 24, 14, 15 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

The number of terms of this finite sequence is the fifth central polygonal number, n = 21.

LINKS

Table of n, a(n) for n=1..21.

MATHEMATICA

Module[{a = {1}, k}, TimeConstrained[Do[k = 2; While[Or[MemberQ[a, k], MemberQ[IntegerDigits@ k, 0], # != 5] &[Mod[a[[n - 1]], 10] + First@ IntegerDigits@ k], k++]; AppendTo[a, k], {n, 2, 24}], 2]; a] (* Michael De Vlieger, Jul 14 2017 *)

CROSSREFS

Cf. A002061

Sequence in context: A214142 A077236 A228190 * A152532 A121096 A047091

Adjacent sequences:  A289280 A289281 A289282 * A289284 A289285 A289286

KEYWORD

nonn,base,fini,full

AUTHOR

Enrique Navarrete, Jul 01 2017

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 February 25 00:39 EST 2018. Contains 299630 sequences. (Running on oeis4.)