[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A212663
Number of ways to represent n’ as x’ + y’, where x+y = n, x > 0, and n’, x’, y’ are the arithmetic derivatives of n, x, y.
4
0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 2, 0, 0, 1, 1, 0, 1, 2, 0, 1
OFFSET
1,39
LINKS
MAPLE
with(numtheory);
A212663:=proc(q)
local a, b, c, i, n, p, pfs, t;
for n from 1 to q do
pfs:=ifactors(n)[2]; a:=n*add(op(2, p)/op(1, p), p=pfs); t:=0;
for i from 1 to trunc(n/2) do
pfs:=ifactors(i)[2]; b:=i*add(op(2, p)/op(1, p), p=pfs);
pfs:=ifactors(n-i)[2]; c:=(n-i)*add(op(2, p)/op(1, p), p=pfs);
if a=b+c then t:=t+1; fi;
od;
print(t);
od; end:
A212663(1000);
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo P. Lava, May 23 2012
STATUS
approved