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.

A129308 a(n) is the number of positive integers k such that k*(k+1) divides n.

Original entry on oeis.org

0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 3, 0, 1, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0, 1, 0, 1, 0, 3, 0, 1, 0, 1, 0, 3, 0, 1, 0, 2, 0, 3, 0, 1, 0, 1, 0, 3, 0, 1, 0, 1, 0, 2, 0, 2, 0, 1, 0, 5, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 2, 0, 2, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 3, 0, 1, 0, 2, 0, 2, 0, 1, 0
Offset: 1

Views

Author

Leroy Quet, May 26 2007

Keywords

Comments

The usual OEIS policy is not to include sequences like this where alternate terms are zero; this is an exception.
In other words, a(n) is the number of oblong numbers (A002378) dividing n. - Bernard Schott, Jul 29 2022

Examples

			The divisors of 20 are 1,2,4,5,10,20. Of these there are two that are of the form k(k+1): 2 = 1*2 and 20 = 4*5. So a(2) = 2.
		

Crossrefs

Positions of 0's and 1's are A088725, whose characteristic function is A360128.
First appearance of n is A287142(n), with sorted version A328450.
The longest run of divisors of n has length A055874(n).
One less than A195155.

Programs

  • Mathematica
    a = {}; For[n = 1, n < 90, n++, k = 1; co = 0; While[k < Sqrt[n], If[IntegerQ[ n/(k*(k + 1))], co++ ]; k++ ]; AppendTo[a, co]]; a (* Stefan Steinerberger, May 27 2007 *)
    Table[Count[Differences[Divisors[n]],1],{n,30}] (* Gus Wiseman, Oct 15 2019 *)
  • PARI
    a(n)=sumdiv(n, d, n%(d+1)==0); \\ Michel Marcus, Jan 06 2015
    
  • Python
    from itertools import pairwise
    from sympy import divisors
    def A129308(n): return 0 if n&1 else sum(1 for a, b in pairwise(divisors(n)) if a+1==b) # Chai Wah Wu, Jun 09 2025

Formula

a(2n-1) = 0; a(2n) = A007862(n). - Ray Chandler, Jun 24 2008
G.f.: Sum_{n>=1} x^(n*(n+1))/(1-x^(n*(n+1))). - Joerg Arndt, Jan 30 2011 [modified by Ilya Gutkovskiy, Apr 14 2021]
a(n) = A000005(n) - A137921(n), where A137921(n) is the number of maximal runs of successive divisors of n. - Gus Wiseman, Oct 15 2019
a(n) = Sum_{d|n} A005369(d). - Ridouane Oudra, Jan 22 2021
a(n) = A195155(n)-1. - Antti Karttunen, Feb 21 2023
From Amiram Eldar, Dec 31 2023: (Start)
a(n) = A088722(n) + A059841(n).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 1. (End)

Extensions

More terms from Stefan Steinerberger, May 27 2007
Extended by Ray Chandler, Jun 24 2008

A328450 Numbers that are a smallest number with k pairs of successive divisors, for some k.

Original entry on oeis.org

1, 2, 6, 12, 60, 72, 180, 360, 420, 840, 1260, 2520, 3780, 5040, 13860, 27720, 36960, 41580, 55440, 83160, 166320, 277200, 360360, 471240, 491400, 720720, 1081080, 1113840, 2162160, 2827440, 3341520, 4324320, 5405400, 6126120
Offset: 0

Views

Author

Gus Wiseman, Oct 15 2019

Keywords

Comments

A sorted version of A287142.

Examples

			The divisors of 72 are {1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72}, with pairs of successive divisors {{1, 2}, {2, 3}, {3, 4}, {8, 9}}, and no smaller number has 4 successive pairs, so 72 belongs to the sequence.
		

Crossrefs

Sorted positions of first appearances in A129308.
The longest run of divisors of n has length A055874(n).
Numbers whose divisors > 1 have no non-singleton runs are A088725.
The Heinz number of the multiset of run-lengths of divisors of n is A328166(n).
The smallest number whose divisors have a longest run of length n is A328449(n).

Programs

  • Mathematica
    dat=Table[Count[Differences[Divisors[n]],1],{n,10000}];
    Sort[Table[Position[dat,i][[1,1]],{i,Union[dat]}]]

A195307 Where records occur in A129308 and also in A195155.

Original entry on oeis.org

1, 2, 6, 12, 60, 180, 360, 420, 840, 1260, 2520, 5040, 13860, 27720, 55440, 83160, 166320, 277200, 360360, 720720, 1081080, 2162160, 2827440, 4324320, 6126120, 12252240, 24504480, 36756720, 73513440, 147026880, 183783600, 232792560, 367567200, 465585120, 698377680
Offset: 1

Views

Author

Omar E. Pol, Oct 16 2011

Keywords

Comments

Observation: a(n) ending at 0, if 5 <= n <= 24 and possibly more.
From David A. Corneth, Apr 14 2021: (Start)
Conjecture: for each term k > 1 in the sequence there exists prime p such that k/p is in the sequence.
From the first 35 terms only a(23) = 2827440 is not in A025487.
In the list of conjectured terms, if actual terms <= 10^16 are 97-smooth and have the following property: a(n+1) = a(n) + k*gcd(a(n), a(n-1), ..., a(n-20)) setting a(n) = 1 for n < 1 then those terms are actual terms.
The conjectured terms are 41-smooth and satisfy a(n+1) = a(n) + k*gcd(a(n), a(n-1), ..., a(n-13)). (End)
From Bernard Schott, Jul 30 2022: (Start)
Equivalently, integers whose number of oblong divisors (A129308) sets a new record.
Corresponding records of number of oblong divisors are 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14, ... (End)

Examples

			a(4) = 12 is in the sequence because A129308(12) = 3 is larger than any earlier value in A129308. - _Bernard Schott_, Jul 30 2022
		

Crossrefs

Extensions

More terms a(6)-a(24) from Alois P. Heinz, Oct 16 2011
a(25)-a(35) from David A. Corneth, Apr 14 2021
Showing 1-3 of 3 results.