cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A323454 Minimal number of steps to reach n from 1 using "Choix de Bruxelles", version 2 (cf. A323460), or -1 if n cannot be reached.

Original entry on oeis.org

0, 1, 11, 2, -1, 10, 9, 3, 9, -1, 10, 9, 5, 8, -1, 4, 7, 8, 8, -1, 10, 9, 6, 8, -1, 5, 8, 7, 9, -1, 6, 5, 10, 6, -1, 9, 9, 7, 9, -1, 11, 10, 7, 9, -1, 6, 9, 8, 10, -1, 7, 6, 7, 7, -1, 6, 7, 8, 8, -1, 7, 6, 11, 6, -1, 10, 10, 7, 10, -1, 8, 8, 9, 8, -1, 8, 11, 8
Offset: 1

Views

Author

N. J. A. Sloane, Jan 15 2019

Keywords

Comments

This is equally the minimal number of steps to reach n from 1 using "Choix de Bruxelles", version 1 (cf. A323286), or -1 if n cannot be reached.
n cannot be reached if its final digit is 0 or 5, but all other numbers can be reached (see comments in A323286).

Examples

			Examples of optimal ways to reach 1,2,3,...:
1
1, 2
1, 2, 4, 8, 16, 112, 56, 28, 14, 12, 6, 3
1, 2, 4
5 cannot be reached, ends in 0 or 5
1, 2, 4, 8, 16, 112, 56, 28, 14, 12, 6
1, 2, 4, 8, 16, 112, 56, 28, 14, 7
1, 2, 4, 8,
1, 2, 4, 8, 16, 112, 56, 28, 18, 9.
10 cannot be reached, ends in 0 or 5
1, 2, 4, 8, 16, 112, 56, 28, 24, 22, 11
1, 2, 4, 8, 16, 112, 56, 28, 14, 12
1, 2, 4, 8, 16, 13
1, 2, 4, 8, 16, 112, 56, 28, 14
15 cannot be reached, ends in 0 or 5
1, 2, 4, 8, 16
1, 2, 4, 8, 16, 32, 34, 17
1, 2, 4, 8, 16, 112, 56, 28, 18
1, 2, 4, 8, 16, 32, 34, 38, 19
20 cannot be reached, ends in 0 or 5
...
		

Crossrefs

For variants of the Choix de Bruxelles operation, see A337321 and A337357.

Extensions

More terms from Rémy Sigrist, Jan 15 2019