A336670 Numbers that have decimal expansion c(1)c(2)...c(n) with distinct digits that satisfy c(1) <> 0, c(1) is the largest digit, and for each i in 1..n there is j in {0, 1} such that c(i) == 2*c(i-1) + j (mod 10) (with c(0): = c(n)).
0, 9, 63, 512, 874, 5012, 7513, 8624, 9874, 62513, 75013, 86374, 98624, 625013, 875124, 986374, 8750124, 9875124, 86251374, 86375124, 87513624, 98750124, 862501374, 863750124, 875013624, 986251374, 986375124, 987513624, 9862501374, 9863750124, 9875013624
Offset: 1
Examples
In all the cases below, the first digit must be the largest and all the digits must be distinct. 9 belongs to this list because c(1) = 9 = c(0) and 9 == 2*9 + 1 (mod 10). 63 belongs to this list because c(1) = 6, c(2) = 3 = c(0), 6 == 2*3 (mod 10), and 3 == 2*6 + 1 (mod 10). 512 belongs to this list because 5 == 2*2 + 1 (mod 10), 1 == 2*5 + 1 (mod 10), and 2 == 2*1 (mod 10). 5012 belongs to this list because 5 == 2*2 + 1 (mod 10), 0 == 2*5 (mod 10), 1 == 2*0 + 1 (mod 10), and 2 == 2*1 (mod 10). 62513 belongs to this list because 6 == 2*3 (mod 10), 2 == 2*6 (mod 10), 5 == 2*2 + 1 (mod 10), 1 = 2*5 + 1 (mod 10), and 3 = 2*1 + 1 (mod 10).
References
- Fred Schuh, The Master Book of Mathematical Recreations, Dover, New York, 1968, pp. 31-35.
Links
- David A. Corneth and Petros Hadjicostas, PARI program.
Programs
-
PARI
\\ See the Corneth and Hadjicostas link. David A. Corneth, Jul 30 2020
Comments