OFFSET
1,2
COMMENTS
LINKS
FORMULA
a(n) <= A000040(n).
EXAMPLE
The first terms, alongside the binary representations of the n-th prime and of a(n), are:
n a(n) bin(p_n) bin(a(n))
-- ---- -------- ---------
1 1 10 1_
2 3 11 11
3 2 101 10_
4 7 111 111
5 5 1011 101_
6 6 1101 110_
7 4 10001 100__
8 9 10011 1001_
9 11 10111 1011_
10 13 11101 11_01
11 15 11111 1111_
12 8 100101 100_0_
13 10 101001 1010__
14 19 101011 10_011
15 23 101111 10111_
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Apr 18 2018
STATUS
approved