login
A362887
a(0) = 0; for n>=1, a(n) is the smallest number whose Hamming distance from a(n-1) is prime(n).
0
0, 3, 4, 27, 100, 1947, 6244, 124827, 399460, 7989147, 528881764, 1618601883, 135820351588, 2063202903963, 6732890118244, 134004598237083, 8873194656503908, 567587557646919579, 1738255451566774372, 145835697138109638555, 2215347544296712968292
OFFSET
0,2
MAPLE
a:= proc(n) option remember; `if`(n=0, 0,
Bits[Xor](a(n-1), 2^ithprime(n)-1))
end:
seq(a(n), n=0..23); # Alois P. Heinz, May 08 2023
CROSSREFS
Sequence in context: A157163 A042225 A094084 * A367388 A042829 A232110
KEYWORD
nonn,base
AUTHOR
Zachary G. Graham, May 08 2023
STATUS
approved