OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
Carlos Rivera, Puzzle 201: The Arithmetic Function A(n), The Prime Puzzles and Problems Connection.
FORMULA
From Amiram Eldar, Sep 08 2024: (Start)
a(n) = Min_{d|n} (2^d * Product_{i=1..n/d-1} prime(i+1)).
a(p) = 2^p for a prime p.
a(2*p) = 3*2^p for a prime p.
a(3*p) = 15*2^p for a prime p > 2. (End)
EXAMPLE
a(12) = 2 * max{1,2} = 4 since 12 = 2^2 * 3^1 and 12 is the least k for which b(k) = 4. Hence a(4) = 12.
MATHEMATICA
a[n_] := Min[Table[2^d*Times @@ Prime[Range[2, n/d]], {d, Divisors[n]}]]; Array[a, 50] (* Amiram Eldar, Sep 08 2024 *)
PROG
(PARI) a(n) = {my(f = factor(n), nd = numdiv(f), v = vector(nd), k = 0); fordiv(f, d, k++; v[k] = 2^d * prod(i = 1, n/d-1, prime(i+1))); vecmin(v); } \\ Amiram Eldar, Sep 08 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Joseph L. Pe, Nov 11 2002
EXTENSIONS
More terms from Amiram Eldar, Sep 08 2024
STATUS
approved