OFFSET
1,1
COMMENTS
LINKS
EXAMPLE
For n=5:
- the values 2, 1, 4 and 3 have already been used;
- we have the following candidates:
+---+--------+-------------+---------------+
| z | Binary | Common bits | Common bits |
| | digits | with 5 | with a(5-1)=3 |
+---+--------+-------------+---------------+
| 5 | 101 | 101 | 1 |
| 6 | 110 | 100 | 10 |
| 7 | 111 | 101 | 11 |
| 8 | 1000 | 0 | 0 |
|...| ... | ... | ... |
+---+--------+-------------+---------------+
Hence, a(5)=8.
PROG
(Perl) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paul Tek, Sep 13 2015
STATUS
approved