cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A036431 a(n) = number of positive integers b which, when added to the number of their divisors, tau(b), gives n.

Original entry on oeis.org

0, 1, 0, 1, 1, 0, 2, 0, 1, 1, 0, 2, 1, 1, 1, 0, 0, 2, 2, 0, 2, 0, 0, 1, 2, 2, 0, 1, 0, 1, 2, 1, 1, 1, 0, 0, 1, 3, 2, 0, 0, 1, 2, 0, 2, 0, 0, 1, 1, 3, 1, 1, 0, 0, 2, 1, 0, 2, 1, 0, 2, 2, 1, 1, 0, 1, 0, 0, 3, 0, 1, 1, 2, 2, 1, 0, 0, 2, 0, 0, 3, 1, 0, 1, 1, 3, 0, 0, 1, 2, 2, 0, 0, 0, 1, 2, 1, 2, 2, 0, 0, 1, 1, 1, 2
Offset: 1

Views

Author

Simon Colton (simonco(AT)cs.york.ac.uk)

Keywords

Comments

Invented by the HR concept formation program.

Examples

			a(7) = 2 because (i) 4+tau(4)=7 and (ii) 5+tau(5)=7.
		

Crossrefs

Cf. A036432.

Programs

  • Maple
    N:= 200: # to get a(1)..a(N)
    A:= Vector(N):
    for b from 1 to N do
      v:= b + numtheory:-tau(b);
      if v <= N then A[v]:= A[v]+1 fi
    od:
    convert(A,list); # Robert Israel, Jun 10 2018
  • PARI
    a(n) = sum(i=1, n, i+numdiv(i) == n); \\ Michel Marcus, Oct 01 2021

Formula

a(n) = |{b in N : b + tau(b) = n}|

Extensions

a(87)=0 corrected by Michel Marcus, Aug 31 2013