[go: up one dir, main page]

login
Search: a360128 -id:a360128
     Sort: relevance | references | number | modified | created      Format: long | short | data
a(n) is the number of positive integers k such that k*(k+1) divides n.
+10
29
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,6
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
LINKS
P. Erdős and R. R. Hall, On some unconventional problems on the divisors of integers, J. Austral. Math. Soc., Ser. A, 25, 479-485 (1978).
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)
EXAMPLE
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.
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 *)
PROG
(PARI) a(n)=sumdiv(n, d, n%(d+1)==0); \\ Michel Marcus, Jan 06 2015
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.
KEYWORD
nonn
AUTHOR
Leroy Quet, May 26 2007
EXTENSIONS
More terms from Stefan Steinerberger, May 27 2007
Extended by Ray Chandler, Jun 24 2008
STATUS
approved
Length of the longest run of divisors > 1 of n.
+10
10
0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 5, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 2, 1, 2, 1, 1, 1
OFFSET
1,6
LINKS
MATHEMATICA
Table[If[n==1, 0, Max@@Length/@Split[Rest[Divisors[n]], #2==#1+1&]], {n, 100}]
PROG
(PARI) A328457(n) = { my(rl=0, pd=0, m=0); fordiv(n, d, if(d>1, if(d>(1+pd), m = max(m, rl); rl=0); pd=d; rl++)); max(m, rl); }; \\ Antti Karttunen, Feb 23 2023
CROSSREFS
Records occur at A328448.
Positions of 0's and 1's are A088725.
The version that looks at all divisors (including 1) is A055874.
The number of successive pairs of divisors > 1 of n is A088722(n).
The Heinz number of the multiset of run-lengths of divisors of n is A328166(n).
The longest run of nontrivial divisors of n is A328458(n).
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 16 2019
EXTENSIONS
Data section extended up to a(105) by Antti Karttunen, Feb 23 2023
STATUS
approved
Numbers k such that A360119(k) > 1, but which have no divisors d > 1 such that d+1 is also a divisor.
+10
2
572, 1144, 1292, 1768, 2288, 2584, 2590, 3496, 3596, 4030, 4576, 4930, 6292, 6992, 7052, 7192, 7436, 8050, 8170, 8246, 9044, 9152, 9212, 9430, 9724, 9758, 10868, 11408, 12136, 12584, 12950, 13984, 14104, 14212, 14384, 14396, 14872, 15370, 16168, 16492, 16588, 16796, 17066, 17168, 17732, 18130, 18304
OFFSET
1,1
FORMULA
{k | A088722(k) = 0 and A360119(k) > 1}.
PROG
(PARI)
A360119(n) = { my(d=divisors(n), erot=vecsort(vector(#d-1, k, d[k+1] - d[k])), s=#d); for(i=1, #erot, if(n%erot[i], s--, if(1==i || erot[i]!=erot[i-1], s--))); (s); };
A360128(n) = !sumdiv(n, d, (d>1)&&!(n%(d+1)));
isA360129(n) = (A360128(n)&&(A360119(n)>1));
CROSSREFS
Subsequence of A088725.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 20 2023
STATUS
approved

Search completed in 0.005 seconds