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!)
A066451 a(n) is the number of integers k > 0 such that (n*k+1)/(k^2+1) is an integer. 2
1, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 2, 3, 1, 2, 1, 3, 1, 2, 1, 3, 2, 3, 1, 2, 1, 3, 1, 2, 1, 3, 2, 3, 1, 2, 1, 3, 2, 2, 1, 2, 2, 4, 1, 2, 1, 3, 1, 2, 1, 2, 2, 3, 1, 3, 1, 5, 1, 2, 1, 2, 2, 3, 1, 2, 1, 3, 1, 2, 1, 2, 3, 4, 1, 2, 1, 3, 1, 2, 2, 2, 2, 4, 1, 2, 1, 3, 1, 3, 1, 3, 2, 3, 1, 2, 1, 3, 1, 2, 1, 2, 2, 3, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
a(57)=5 because (57*k+1)/(k^2+1) is an integer for k = 1,2,5,7,57.
PROG
(PARI) a(n) = sum(k=1, n, denominator((n*k+1)/(k^2+1)) == 1); \\ Michel Marcus, Feb 17 2021
CROSSREFS
Sequence in context: A195155 A178544 A161506 * A328048 A363522 A091090
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Dec 29 2001
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 15 05:46 EDT 2024. Contains 372538 sequences. (Running on oeis4.)