OFFSET
1,2
LINKS
FORMULA
a(prime(k)) = 2^(k-1) + 1 for any k > 0 (where prime(k) denotes the k-th prime number).
EXAMPLE
A371985(42) = 70, so a(70) = 42.
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Apr 21 2024
STATUS
approved