OFFSET
1,2
COMMENTS
The number of terms of A180252 that divide n.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
q[n_] := AllTrue[FactorInteger[n][[;; , 1]], IntegerQ[Sqrt[# - 1]] &]; f[p_, e_] := If[q[p], e + 1, 1]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f=factor(n)); prod(i=1, #f~, if(issquare(f[i, 1]-1), f[i, 2] + 1, 1))};
(Python)
from math import prod
from sympy import factorint
from sympy.ntheory.primetest import is_square
def A368544(n): return prod(e+1 for p, e in factorint(n).items() if is_square(p-1)) # Chai Wah Wu, Dec 30 2023
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Amiram Eldar, Dec 29 2023
STATUS
approved