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-3 of 3 results.

A177236 a(n) = A049820(n) - A177235(n).

Original entry on oeis.org

0, 0, 0, 0, 1, 0, 1, 1, 2, 1, 2, 1, 4, 3, 2, 2, 5, 3, 5, 4, 5, 4, 5, 4, 8, 7, 6, 5, 8, 5, 8, 8, 10, 9, 8, 6, 11, 10, 9, 8, 13, 10, 13, 12, 11, 10, 11, 10, 16, 14, 14, 13, 16, 13, 14, 13, 16, 15, 16, 13, 20, 19, 16, 16, 19, 16, 19, 18, 19, 16, 19, 17, 25, 24, 21, 20, 21, 18, 21, 20, 24, 23
Offset: 1

Views

Author

Omar E. Pol, May 23 2010

Keywords

Comments

Number of non-divisors k of n, 1R. J. Mathar, May 24 2010]

Crossrefs

Extensions

Terms from a(16) onwards from R. J. Mathar, May 24 2010

A049820 a(n) = n - d(n), where d(n) is the number of divisors of n (A000005).

Original entry on oeis.org

0, 0, 1, 1, 3, 2, 5, 4, 6, 6, 9, 6, 11, 10, 11, 11, 15, 12, 17, 14, 17, 18, 21, 16, 22, 22, 23, 22, 27, 22, 29, 26, 29, 30, 31, 27, 35, 34, 35, 32, 39, 34, 41, 38, 39, 42, 45, 38, 46, 44, 47, 46, 51, 46, 51, 48, 53, 54, 57, 48, 59, 58, 57, 57, 61, 58, 65
Offset: 1

Views

Author

Keywords

Comments

a(n) is the number of non-divisors of n in 1..n. - Jaroslav Krizek, Nov 14 2009
Also equal to the number of partitions p of n such that max(p)-min(p) = 1. The number of partitions of n with max(p)-min(p) <= 1 is n; there is one with k parts for each 1 <= k <= n. max(p)-min(p) = 0 iff k divides n, leaving n-d(n) with a difference of 1. It is easiest to see this by looking at fixed k with increasing n: for k=3, starting with n=3 the partitions are [1,1,1], [2,1,1], [2,2,1], [2,2,2], [3,2,2], etc. - Giovanni Resta, Feb 06 2006 and Franklin T. Adams-Watters, Jan 30 2011
Number of positive numbers in n-th row of array T given by A049816.
Number of proper non-divisors of n. - Omar E. Pol, May 25 2010
a(n+2) is the sum of the n-th antidiagonal of A225145. - Richard R. Forberg, May 02 2013
For n > 2, number of nonzero terms in n-th row of triangle A051778. - Reinhard Zumkeller, Dec 03 2014
Number of partitions of n of the form [j,j,...,j,i] (j > i). Example: a(7)=5 because we have [6,1], [5,2], [4,3], [3,3,1], and [2,2,2,1]. - Emeric Deutsch, Sep 22 2016

Examples

			a(7) = 5; the 5 non-divisors of 7 in 1..7 are 2, 3, 4, 5, and 6.
The 5 partitions of 7 with max(p) - min(p) = 1 are [4,3], [3,2,2], [2,2,2,1], [2,2,1,1,1] and [2,1,1,1,1,1]. - _Emeric Deutsch_, Mar 01 2006
		

Crossrefs

Cf. A000005.
One less than A062968, two less than A059292.
Cf. A161664 (partial sums).
Cf. A060990 (number of solutions to a(x) = n).
Cf. A045765 (numbers not occurring in this sequence).
Cf. A236561 (same sequence sorted into ascending order), A236562 (with also duplicates removed), A236565, A262901 and A262903.
Cf. A262511 (numbers that occur only once).
Cf. A055927 (positions of repeated terms).
Cf. A245388 (positions of squares).
Cf. A155043 (number of steps needed to reach zero when iterating a(n)), A262680 (number of nonzero squares encountered).
Cf. A259934 (an infinite trunk of the tree defined by edge-relation a(child) = parent, conjectured to be unique).
Cf. tables and arrays A047916, A051731, A051778, A173540, A173541.
Cf. also arrays A225145, A262898, A263255 and tables A263265, A263267.

Programs

Formula

a(n) = Sum_{k=1..n} ceiling(n/k)-floor(n/k). - Benoit Cloitre, May 11 2003
G.f.: Sum_{k>0} x^(2*k+1)/(1-x^k)/(1-x^(k+1)). - Emeric Deutsch, Mar 01 2006
a(n) = A006590(n) - A006218(n) = A161886(n) - A000005(n) - A006218(n) + 1 for n >= 1. - Jaroslav Krizek, Nov 14 2009
a(n) = Sum_{k=1..n} A000007(A051731(n,k)). - Reinhard Zumkeller, Mar 09 2010
a(n) = A076627(n) / A000005(n). - Reinhard Zumkeller, Feb 06 2012
For n >= 2, a(n) = A094181(n) / A051953(n). - Antti Karttunen, Nov 27 2015
a(n) = Sum_{k=1..n} ((n mod k) + (-n mod k))/k. - Wesley Ivan Hurt, Dec 28 2015
G.f.: Sum_{j>=2} (x^(j+1)*(1-x^(j-1))/(1-x^j))/(1-x). - Emeric Deutsch, Sep 22 2016
Dirichlet g.f.: zeta(s-1)- zeta(s)^2. - Ilya Gutkovskiy, Apr 12 2017
a(n) = Sum_{i=1..n-1} sign(i mod n-i). - Wesley Ivan Hurt, Sep 27 2018

Extensions

Edited by Franklin T. Adams-Watters, Jan 30 2012

A173540 Triangle read by rows in which row n lists the proper nondivisors of n, or zero if n <= 2.

Original entry on oeis.org

0, 0, 2, 3, 2, 3, 4, 4, 5, 2, 3, 4, 5, 6, 3, 5, 6, 7, 2, 4, 5, 6, 7, 8, 3, 4, 6, 7, 8, 9, 2, 3, 4, 5, 6, 7, 8, 9, 10, 5, 7, 8, 9, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 2, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 2, 3, 4, 5, 6, 7
Offset: 1

Views

Author

Omar E. Pol, May 24 2010

Keywords

Comments

Define "proper nondivisors of n" as the positive numbers less than n that do not divide n.
Note that a(1) = 0 and a(2) = 0, by convention.
Row sums give A024816.
Row products give A055067, except the first two rows. - Reinhard Zumkeller, Feb 06 2012
T(n,1) = A199968(n). - Reinhard Zumkeller, Oct 02 2015
The n-th row has A049820(n) terms. - Michel Marcus, Dec 23 2015

Examples

			If written as a triangle:
  0;
  0;
  2;
  3;
  2, 3, 4;
  4, 5;
  2, 3, 4, 5,  6;
  3, 5, 6, 7;
  2, 4, 5, 6,  7,  8;
  3, 4, 6, 7,  8,  9;
  2, 3, 4, 5,  6,  7,  8,  9, 10;
  5, 7, 8, 9, 10, 11;
  2, 3, 4, 5,  6,  7,  8,  9, 10, 11, 12;
  3, 4, 5, 6,  8,  9, 10, 11, 12, 13;
  2, 4, 6, 7,  8,  9, 10, 11, 12, 13, 14;
  3, 5, 6, 7,  9, 10, 11, 12, 13, 14, 15;
		

Crossrefs

Cf. A199968, A024816 (row sums).

Programs

  • Haskell
    a173540 n k = a173540_row n !! (k-1)
    a173540_row n = a173540_tabf !! (n-1)
    a173540_tabf = [0] : [0] : map
                   (\v -> [w | w <- [2 .. v - 1], mod v w > 0]) [3..]
    -- Reinhard Zumkeller, Oct 02 2015, Feb 06 2012
  • Mathematica
    Join[{0, 0}, Flatten[Table[Complement[Range[n], Divisors[n]], {n, 1, 20}]]] (* Geoffrey Critzer, Dec 13 2014 *)
Showing 1-3 of 3 results.