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!)
A299988 Lexicographic first sequence of nonnegative integers such that a(n) + a(n+1) has a digit 8, and no term occurs twice. 20
0, 8, 10, 18, 20, 28, 30, 38, 40, 41, 7, 1, 17, 11, 27, 21, 37, 31, 47, 33, 5, 3, 15, 13, 25, 23, 35, 43, 39, 9, 19, 29, 49, 32, 6, 2, 16, 12, 26, 22, 36, 42, 44, 4, 14, 24, 34, 46, 52, 56, 62, 66, 72, 76, 82, 86, 92, 88, 50, 48, 60, 58, 70, 68, 80, 78, 90, 91, 57, 51, 67, 61, 77, 71, 87, 81, 97, 83, 45, 53, 55, 63, 65, 73, 75, 93, 85, 95, 89, 59, 69 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

A permutation of the nonnegative integers.

LINKS

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

PROG

(PARI) a(n, f=1, d=8, a=0, u=[a])={for(n=1, n, f&&if(f==1, print1(a", "), write(f, n-1, " "a)); for(k=u[1]+1, oo, setsearch(u, k)&&next; setsearch(Set(digits(a+k)), d)&&(a=k)&&break); u=setunion(u, [a]); u[2]==u[1]+1&&u=u[^1]); a}

CROSSREFS

Cf. A299978 (analog with positive terms), A299957 (analog with digit 1), A299970, A299982..A299987, A299969 (digit 0, 2..7, 9).

Sequence in context: A059094 A302166 A287270 * A143617 A015732 A179474

Adjacent sequences:  A299985 A299986 A299987 * A299989 A299990 A299991

KEYWORD

nonn,base

AUTHOR

M. F. Hasler and Eric Angelini, Feb 22 2018

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 March 28 07:59 EDT 2020. Contains 333079 sequences. (Running on oeis4.)