[go: up one dir, main page]

login
Revision History for A167450 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Smallest sequence which lists the position of digits "8" in the sequence.
(history; published version)
#4 by N. J. A. Sloane at Sat Apr 04 21:34:04 EDT 2015
COMMENTS

The lexicographically smallest earliest sequence such that a(1),a(2),a(3),... is the (increasing) list of the positions of digits "8" in the string obtained by concatenating all these terms, written in base 10.

Discussion
Sat Apr 04
21:34
OEIS Server: https://oeis.org/edit/global/2392
#3 by Charles R Greathouse IV at Sat Jul 14 11:32:32 EDT 2012
AUTHOR

_M. F. Hasler (www.univ-ag.fr/~mhasler), _, Nov 19 2009

Discussion
Sat Jul 14
11:32
OEIS Server: https://oeis.org/edit/global/1815
#2 by N. J. A. Sloane at Sun Jul 11 03:00:00 EDT 2010
EXAMPLE

We cannot have a(1)=1 (since then there's no "8" in the 1st first place), but a(1)=2 is possible.

KEYWORD

base,nonn,new

AUTHOR

M. F. Hasler (MHasler(AT)www.univ-ag.fr/~mhasler), Nov 19 2009

#1 by N. J. A. Sloane at Tue Jun 01 03:00:00 EDT 2010
NAME

Smallest sequence which lists the position of digits "8" in the sequence.

DATA

2, 8, 9, 10, 11, 88, 880, 900, 901, 902, 903, 904, 905, 906, 907, 909, 910, 911, 912, 913, 914, 915, 916, 917, 919, 920, 921, 922, 923, 924, 925, 926, 8000, 9000, 9001, 9002, 9003, 9004, 9005, 9006, 9007, 9009, 9010, 9011, 9012, 9013, 9014, 9015, 9016, 9017

OFFSET

1,1

COMMENTS

The lexicographically smallest sequence such that a(1),a(2),a(3),... is the (increasing) list of the positions of digits "8" in the string obtained by concatenating all these terms, written in base 10.

EXAMPLE

We cannot have a(1)=1 (since then there's no "8" in the 1st place), but a(1)=2 is possible.

This implies that a(2) must start with a digit "8", so a(2)=8 is the smallest possible choice.

This allows us to go on with a(3)=9, a(4)=10, a(5)=11, but then must be follow 4 digits "8" (the 8th through 11th digit of the sequence), so a(6)=88 and a(7)=880 are the smallest possible choices.

Then the reasoning continues in analogy with A167452-A167457.

PROG

(PARI) concat([ [2, 8, 9, 10, 11, 88, 880], vector((88-11-1)\3, i, 900-(i<=8)+i+(i>=18)), [8000], select(x->x%10-8 & x\10%10-8, vector((880-88)\4, i, 9000-1+i)) ])

CROSSREFS
KEYWORD

base,nonn

AUTHOR

M. F. Hasler (MHasler(AT)univ-ag.fr), Nov 19 2009

STATUS

approved