OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
If n is nonsquarefree, then a(n) = n. If n is an even squarefree integer, then a(n) = 2*n. If n is an odd squarefree multiple of 3, then a(n) = 3*n. If n is a squarefree integer not divisible by either 2 or 3, then a(n) = 4*n. a(p) = 4p if p is a prime >= 5. - Leroy Quet, May 14 2008
Sum_{k=1..n} a(k) ~ c * n^2, where c = 1/2 + 13/(2*Pi^2) = 1.158587... . - Amiram Eldar, Jul 02 2023
MATHEMATICA
snmn[n_]:=Which[!SquareFreeQ[n], n, EvenQ[n], 2n, Mod[n, 3]==0, 3n, True, 4n]; Array[snmn, 70] (* Harvey P. Dale, Nov 11 2020 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Oct 16 2003
EXTENSIONS
More terms from Ray Chandler, Oct 18 2003
STATUS
approved