The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A368544 The number of divisors of n whose prime factors are all of the form k^2+1. 1
1, 2, 1, 3, 2, 2, 1, 4, 1, 4, 1, 3, 1, 2, 2, 5, 2, 2, 1, 6, 1, 2, 1, 4, 3, 2, 1, 3, 1, 4, 1, 6, 1, 4, 2, 3, 2, 2, 1, 8, 1, 2, 1, 3, 2, 2, 1, 5, 1, 6, 2, 3, 1, 2, 2, 4, 1, 2, 1, 6, 1, 2, 1, 7, 2, 2, 1, 6, 1, 4, 1, 4, 1, 4, 3, 3, 1, 2, 1, 10, 1, 2, 1, 3, 4, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The number of terms of A180252 that divide n.
LINKS
FORMULA
Multiplicative with a(p^e) = e+1 if p is of the form k^2+1, and 1 otherwise.
a(n) >= 1, with equality if and only if all the prime factors of n are in A070303.
a(n) <= A000005(n), with equality if and only if n is in A180252.
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Product_{k in A005574} (1 + 1/k^2) = 2.80986546... .
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
Sequence in context: A342507 A261337 A337195 * A260088 A364969 A339399
KEYWORD
nonn,easy,mult
AUTHOR
Amiram Eldar, Dec 29 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 12 17:44 EDT 2024. Contains 372492 sequences. (Running on oeis4.)