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!)
A128428 Number of distinct prime factors of n^2+1. 9
1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 3, 1, 2, 1, 3, 2, 2, 1, 3, 2, 3, 1, 2, 1, 3, 2, 2, 2, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 2, 3, 2, 2, 2, 4, 2, 2, 2, 2, 2, 3, 1, 3, 1, 3, 2, 2, 2, 2, 2, 3, 2, 2, 1, 3, 2, 2, 2, 2, 3, 4, 1, 3, 2, 3, 2, 2, 2, 3, 2, 4, 1, 2, 2, 3, 2, 3, 1, 3, 2, 3, 1, 2, 2, 3, 3, 3, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
a(n) is also the number of distinct prime factors, up to multiplication by units, of n + i in the ring of Gaussian integers. - Jason Kimberley, Dec 17 2011
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A001221(n^2+1).
EXAMPLE
a(3) = 2 because 3^2+1 = 2*5.
MAPLE
a:= n-> nops(select(isprime, numtheory[divisors](n^2+1))):
seq(a(n), n=1..100); # Alois P. Heinz, Dec 06 2020
MATHEMATICA
a[n_]:=Length[FactorInteger[n^2 + 1]]
PROG
(PARI) a(n)=omega(n^2+1) \\ Charles R Greathouse IV, Jul 31 2011
CROSSREFS
Cf. A193330 (counted with multiplicity).
Sequence in context: A329320 A316112 A317994 * A056171 A357328 A333749
KEYWORD
nonn
AUTHOR
Kent Horvath (kenthorvath(AT)gmail.com), May 10 2007
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 June 1 12:42 EDT 2024. Contains 373023 sequences. (Running on oeis4.)