|
|
|
|
1, 0, -4, -8, -32, -32, -128, -256, -512, -512, -2048, -4096, -12288, -16384, -16384, -32768, -131072, -262144, -786432, -1572864, -2097152, -2097152, -8388608, -16777216, -33554432, -33554432, -67108864, -134217728, -536870912, -1610612736, -4294967296
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
Appears to be the determinant of n X n (-1,1) matrix defined by A(i,j)=1 if j=1 or i divides j else -1.
Appears also to be the determinant of n X n (-i/j,i/j) matrix defined by A(i,j)=i/j if j=1 or i divides j else -i/j.
|
|
LINKS
|
|
|
FORMULA
|
|
|
PROG
|
(Python)
from functools import lru_cache
@lru_cache(maxsize=None)
if n == 0:
return 0
c, j = n, 2
k1 = n//j
while k1 > 1:
j2 = n//k1 + 1
j, k1 = j2, n//j2
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|