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 April 20 00:58 EDT 2024. Contains 371798 sequences. (Running on oeis4.)