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.

Showing 1-2 of 2 results.

A126213 a(n) = sum of the d(k)'s, where 1<=k<=n and d(k) is equal to any divisor of n, where d(k) is the number of positive divisors of k.

Original entry on oeis.org

1, 3, 1, 5, 1, 10, 1, 17, 7, 9, 1, 35, 1, 13, 7, 33, 1, 33, 1, 42, 7, 17, 1, 79, 6, 19, 10, 55, 1, 59, 1, 75, 10, 23, 6, 119, 1, 25, 10, 110, 1, 66, 1, 85, 24, 29, 1, 174, 1, 46, 13, 95, 1, 108, 6, 149, 13, 33, 1, 204, 1, 37, 22, 165, 6, 109, 1, 123, 13, 61, 1, 304, 1, 43, 18, 135, 8
Offset: 1

Views

Author

Leroy Quet, Dec 20 2006

Keywords

Examples

			The number of divisors of the integers 1 through 10 form the sequence 1,2,2,3,2,4,2,4,3,4. The divisors of 10 are 1,2,5,10. The terms of the sequence of the first ten d(k)'s which equal any divisor of 10 are the five terms 1,2,2,2,2. So a(10) = 1+2+2+2+2 = 9.
		

Crossrefs

Programs

  • Mathematica
    f[n_] := Plus @@ Select[Table[Length@Divisors[k], {k, n}], MemberQ[Divisors[n], # ] &];Table[f[n], {n, 78}] (* Ray Chandler, Dec 21 2006 *)
  • PARI
    A126213(n) = sumdiv(n, d, d*sum(k=1, n, (numdiv(k)==d))); \\ Antti Karttunen, Apr 01 2021
    
  • PARI
    first(n) = { n = min(n, 245044799); qdivs = vector(960); res = vector(n); for(i = 1, n, nd = numdiv(i); qdivs[nd]++; d = select(x -> x <= #qdivs, divisors(i)); res[i] = sum(j = 1, #d, d[j]*qdivs[d[j]]) ); res } \\ David A. Corneth, Apr 01 2021

Extensions

Extended by Ray Chandler, Dec 21 2006

A367628 Sum of the divisors of n <= tau(n).

Original entry on oeis.org

1, 3, 1, 3, 1, 6, 1, 7, 4, 3, 1, 16, 1, 3, 4, 7, 1, 12, 1, 12, 4, 3, 1, 24, 1, 3, 4, 7, 1, 17, 1, 7, 4, 3, 1, 25, 1, 3, 4, 20, 1, 19, 1, 7, 9, 3, 1, 24, 1, 8, 4, 7, 1, 12, 1, 22, 4, 3, 1, 43, 1, 3, 4, 7, 1, 12, 1, 7, 4, 15, 1, 45, 1, 3, 9, 7, 1, 12, 1, 30, 4, 3, 1, 35, 1
Offset: 1

Views

Author

Wesley Ivan Hurt, Nov 24 2023

Keywords

Comments

First differs from A126212(n) at a(25) = 1.

Examples

			a(12) = 16. The sum of the divisors of 12 <= tau(12) = 6 are 1 + 2 + 3 + 4 + 6 = 16.
		

Crossrefs

Cf. A000005 (tau), A126212, A366979.

Programs

  • Mathematica
    Table[Sum[k(1-Ceiling[n/k]+Floor[n/k]), {k, DivisorSigma[0, n]}], {n, 100}]
  • PARI
    a(n) = my(t=numdiv(n)); sumdiv(n, d, if (d <=t, d)); \\ Michel Marcus, Nov 25 2023

Formula

a(n) = Sum_{d|n, d<=tau(n)} d.
Showing 1-2 of 2 results.