login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A299978 Lexicographic first sequence of positive integers such that a(n) + a(n+1) has a digit 8, and no term occurs twice. 2
1, 7, 11, 17, 21, 27, 31, 37, 41, 39, 9, 19, 29, 49, 32, 6, 2, 16, 12, 26, 22, 36, 42, 38, 10, 8, 20, 18, 30, 28, 40, 43, 5, 3, 15, 13, 25, 23, 35, 33, 45, 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, 47, 51, 57, 61, 67, 71, 77, 81, 87, 93, 55, 53, 65, 63, 75, 73, 85, 83, 95, 89, 59, 69, 79, 99 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

A permutation of the positive integers.

LINKS

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

PROG

(PARI) a(n, f=1, d=8, a=1, u=[a])={for(n=2, 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. A299988 (analog with nonnegative terms), A299957 (analog with digit 1), A299971, A299972, ..., A299979 (digit 0, 2, ..., 9).

Sequence in context: A230223 A309587 A260893 * A131229 A092737 A072669

Adjacent sequences:  A299975 A299976 A299977 * A299979 A299980 A299981

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 January 19 03:54 EST 2020. Contains 331031 sequences. (Running on oeis4.)