[go: up one dir, main page]

login
A092510
Difference between smallest semiperimeter (see A063655) and its integer log (see A001414).
2
2, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 3, 0, 1, 1, 1, 2, 0, 0, 0, 2, 1, 0, 0, 2, 1, 1, 1, 0, 3, 0, 1, 3, 0, 3, 0, 0, 1, 4, 0, 2, 0, 0, 1, 4, 1, 0, 3, 4, 0, 1, 1, 0, 0, 3, 1, 5, 1, 0, 7, 0, 0, 1, 1, 5, 6, 0, 1, 5, 0, 0, 0, 2, 1, 6, 0, 0, 0, 0, 0, 7, 1, 5, 3, 6, 1, 1, 1, 2, 7, 0
OFFSET
1,1
LINKS
FORMULA
a(n) = A063655(n) - A001414(n).
EXAMPLE
If p is prime a(p)=1 because A063655(p) = p+1 and A001414(p) = p.
PROG
(PARI)
A001414(n) = { my(f=factor(n)); sum(k=1, matsize(f)[1], f[k, 1]*f[k, 2]); }; \\ From A001414.
A063655(n) = { my(c=1); fordiv(n, d, if((d*d)>=n, if((d*d)==n, return(2*d), return(c+d))); c=d); (0); };
A092510(n) = (A063655(n)-A001414(n)); \\ Antti Karttunen, Oct 20 2017
CROSSREFS
Cf. A063655 and A001414.
Sequence in context: A016319 A342531 A287156 * A117208 A276004 A133300
KEYWORD
nonn
AUTHOR
Carlos Alves, Dec 31 2004
EXTENSIONS
Offset corrected and missing term a(1) = 2 prepended by Antti Karttunen, Oct 20 2017
STATUS
approved