|
|
A330714
|
|
For any n >= 0 with binary expansion Sum_{k=0..w} b_k * 2^k, let h(n) = Sum_{k=0..w} b_k * i^k (where i denotes the imaginary unit); a(n) is the square of the modulus of h(n).
|
|
1
|
|
|
0, 1, 1, 2, 1, 0, 2, 1, 1, 2, 0, 1, 2, 1, 1, 0, 1, 4, 2, 5, 0, 1, 1, 2, 2, 5, 1, 4, 1, 2, 0, 1, 1, 2, 4, 5, 2, 1, 5, 4, 0, 1, 1, 2, 1, 0, 2, 1, 2, 5, 5, 8, 1, 2, 4, 5, 1, 4, 2, 5, 0, 1, 1, 2, 1, 0, 2, 1, 4, 1, 5, 2, 2, 1, 1, 0, 5, 2, 4, 1, 0, 1, 1, 2, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) {a(n) = my(d=Vecrev(digits(n, 2))); norm(sum(k=1, #d, d[k]*I^k))}
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|