[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A361015 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Number of arithmetic progressions of 3 or more integers whose product is equal to n.
(history; published version)
#22 by OEIS Server at Thu May 11 23:39:21 EDT 2023
LINKS

Chai Wah Wu, <a href="/A361015/b361015_1.txt">Table of n, a(n) for n = 2..10000</a>

#21 by Michel Marcus at Thu May 11 23:39:21 EDT 2023
STATUS

reviewed

approved

Discussion
Thu May 11
23:39
OEIS Server: Installed first b-file as b361015.txt.
#20 by Joerg Arndt at Thu May 11 23:37:57 EDT 2023
STATUS

proposed

reviewed

#19 by Chai Wah Wu at Thu May 11 21:59:09 EDT 2023
STATUS

editing

proposed

#18 by Chai Wah Wu at Thu May 11 21:58:54 EDT 2023
PROG

from sympy import divisors, divisor_count

c, s = -divisor_countlen(nds)<<1, [-d for d in ds[::-1]]+ds

STATUS

proposed

editing

#17 by Chai Wah Wu at Thu May 11 20:29:12 EDT 2023
STATUS

editing

proposed

#16 by Chai Wah Wu at Thu May 11 20:28:11 EDT 2023
LINKS

Chai Wah Wu, <a href="/A361015/b361015_1.txt">Table of n, a(n) for n = 2..10000</a>

#15 by Chai Wah Wu at Thu May 11 20:27:42 EDT 2023
PROG

return c # Chai Wah Wu, May 11 2023

#14 by Chai Wah Wu at Thu May 11 20:27:32 EDT 2023
PROG

(Python)

from sympy import divisors, divisor_count

def A361015(n):

ds = divisors(n)

c, s = -divisor_count(n)<<1, [-d for d in ds[::-1]]+ds

for x in s:

d2 = [d//x for d in ds if d%x==0]

for y in (f-x for f in [-d for d in d2[::-1]]+d2):

m, k = x*(z:=x+y), 1

while n >= abs(m) and k<=n:

if n == m:

c += 1

z += y

m *= z

k += 1

return c # Chai Wah Wu, May 11 2023

STATUS

approved

editing

#13 by Michael De Vlieger at Thu May 11 12:22:50 EDT 2023
STATUS

proposed

approved