OFFSET
1,1
COMMENTS
Named "Vandiver's arithmetical function" by Sándor (2021), after the American mathematician Harry Schultz Vandiver (1882-1973). - Amiram Eldar, Jun 29 2022
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
József Sándor, On Vandiver's arithmetical function - I, Notes on Number Theory and Discrete Mathematics, Vol. 27, No. 3 (2021), pp. 29-38.
Harry S. Vandiver, Problem 116, American Mathematical Monthly, Vol. 11, No. 2 (1904), pp. 38-39.
FORMULA
a(p) = 2(p+1), a(p^2) = 2(p+1)(p^2+1) for primes p.
a(n) = Product_{d|n} (d+1). - Amiram Eldar, Jun 29 2022
MAPLE
a:= n-> mul(d+1, d=numtheory[divisors](n)):
seq(a(n), n=1..50); # Alois P. Heinz, Jun 30 2022~
MATHEMATICA
Table[Times @@ (Divisors[n] + 1), {n, 43}] (* Ivan Neretin, May 27 2015 *)
PROG
(PARI) a(n) = {d = divisors(n); return (prod(i=1, #d, d[i]+1)); } \\ Michel Marcus, Jun 12 2013
(Haskell)
a020696 = product . map (+ 1) . a027750_row'
-- Reinhard Zumkeller, Mar 28 2015
(Python)
from math import prod
from sympy import divisors
def A020696(n): return prod(d+1 for d in divisors(n, generator=True)) # Chai Wah Wu, Jun 30 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Jun 01 2003
EXTENSIONS
Edited by Don Reble, Jun 05 2003
STATUS
approved