OFFSET
1,1
COMMENTS
A005351(n) is a representation of n obtained by converting n to the base(-2) representation, interpreting this as a binary, base(+2), number, and converting back to decimal.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[n_] := Module[{t = 2 (4^Floor[Log[4, Abs[n] + 1] + 2] - 1)/3}, BitXor[n + t, t]]; Select[Array[f, 300], PrimeQ] (* Robert G. Wilson v, Feb 21 2011 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, Feb 19 2011
STATUS
approved