|
|
|
|
3, 15, 51, 255, 771, 3855, 13107, 65535, 196611, 983055, 3342387, 16711935, 50529027, 252645135, 858993459, 4294967295, 12884901891, 64424509455, 219043332147, 1095216660735, 3311419785987, 16557098929935, 56294136361779
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
a(n+1) = (2 * a(n)) XOR (3 * a(n)), where XOR is the bitwise exclusive or operator. - Federico Provvedi, Sep 14 2023
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) A011371(n)=my(s); while(n>>=1, s+=n); s
(Python)
def A038192(n): return sum((bool(~(m:=(n<<1)+1)&m-k)^1)<<k for k in range((n+1)<<1)) # Chai Wah Wu, May 02 2023
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|