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.

A337588 Number of distinct positive integer pairs, (s,t), such that s < t < n where neither s nor t divides n, but s | t.

Original entry on oeis.org

0, 0, 0, 0, 1, 0, 3, 1, 4, 3, 8, 1, 12, 7, 10, 8, 19, 7, 23, 10, 21, 20, 31, 8, 34, 27, 32, 23, 46, 17, 52, 30, 46, 43, 52, 22, 69, 52, 59, 36, 79, 38, 85, 54, 65, 72, 95, 36, 98, 70, 92, 73, 114, 61, 108, 71, 110, 103, 132, 45, 142, 113, 112, 96, 139, 90, 161, 112, 143
Offset: 1

Views

Author

Wesley Ivan Hurt, Sep 15 2020

Keywords

Examples

			a(11) = 8; There are 9 positive integers less than 11 that do not divide 11, {2,3,4,5,6,7,8,9,10}. Of these, there are 8 ordered pairs, (s,t), where s < t < 11 and s | t. They are (2,4), (2,6), (2,8), (2,10), (3,6), (3,9), (4,8) and (5,10).
		

Crossrefs

Programs

  • Mathematica
    Table[Sum[Sum[(1 - Ceiling[k/i] + Floor[k/i]) (Ceiling[n/k] - Floor[n/k])(Ceiling[n/i] - Floor[n/i]), {i, k - 1}], {k, n}], {n, 80}]

Formula

a(n) = Sum_{k=1..n} Sum_{i=1..k-1} (ceiling(n/k) - floor(n/k)) * (ceiling(n/i) - floor(n/i)) * (1 - ceiling(k/i) + floor(k/i)).