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!)
A286002 a(n) = 2n - d(n), where d(n) is the number of divisors of n (A000005). 1
1, 2, 4, 5, 8, 8, 12, 12, 15, 16, 20, 18, 24, 24, 26, 27, 32, 30, 36, 34, 38, 40, 44, 40, 47, 48, 50, 50, 56, 52, 60, 58, 62, 64, 66, 63, 72, 72, 74, 72, 80, 76, 84, 82, 84, 88, 92, 86, 95, 94, 98, 98, 104, 100, 106, 104, 110, 112, 116 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Let H_n denote the y=n/x (1<=x<=n) piece of the hyperbola. a(n) is the number of intersections between H_n and the Cartesian grid (Z X R union R X Z) and a(n)-1 is the number of (a,a+1) X (b,b+1) open unit squares, with a and b integers, crossed by H_n.
LINKS
FORMULA
a(n) = 2n - A000005(n).
a(n) = n + A049820(n).
a(n) = A005843(n) - A000005(n). - Felix Fröhlich, Jun 11 2017
MAPLE
A286002:=n->2*n-numtheory[tau](n): seq(A286002(n), n=1..100); # Wesley Ivan Hurt, Jun 19 2017
MATHEMATICA
Table[2 n - DivisorSigma[0, n], {n, 100}]; (* Vincenzo Librandi, Jun 12 2017 *)
PROG
(PARI) a(n) = 2*n - numdiv(n)
(Magma) [2*n - NumberOfDivisors(n): n in [1..100]]; // Vincenzo Librandi, Jun 12 2017
CROSSREFS
Sequence in context: A369601 A345426 A061884 * A029935 A317625 A308447
KEYWORD
nonn
AUTHOR
Luc Rousseau, Jun 11 2017
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 July 12 05:32 EDT 2024. Contains 374237 sequences. (Running on oeis4.)