login

Revision History for A345022

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

Showing entries 1-10 | older changes
Smallest number divisible by all numbers 1 through n+1 except n, or 0 if impossible.
(history; published version)
#34 by N. J. A. Sloane at Fri Jul 16 06:45:36 EDT 2021
STATUS

proposed

approved

#33 by Michael S. Branicky at Fri Jun 25 19:43:17 EDT 2021
STATUS

editing

proposed

#32 by Michael S. Branicky at Fri Jun 25 19:43:15 EDT 2021
PROG

(Python) # generates initial segment of sequence

from math import gcd

from itertools import accumulate

def lcm(a, b): return a * b // gcd(a, b)

def aupton(nn):

lcm1 = accumulate(range(1, nn), lcm)

lcm2 = [lcm(k, n+1) for n, k in enumerate(lcm1, start=2)]

return [m*(m%n != 0) for n, m in enumerate(lcm2, start=2)]

print(aupton(42)) # Michael S. Branicky, Jun 25 2021

STATUS

proposed

editing

#31 by Giorgos Kalogeropoulos at Fri Jun 25 18:10:09 EDT 2021
STATUS

editing

proposed

#30 by Giorgos Kalogeropoulos at Fri Jun 25 18:10:01 EDT 2021
MATHEMATICA

Table[If[Mod[l=LCM@@Join[Range[n-1], {n+1}], n]==0, 0, l], {n, 2, 50}] (* Giorgos Kalogeropoulos, Jun 25 2021 *)

STATUS

proposed

editing

#29 by Sean A. Irvine at Fri Jun 25 16:44:03 EDT 2021
STATUS

editing

proposed

#28 by Sean A. Irvine at Fri Jun 25 16:43:18 EDT 2021
COMMENTS

Probably yes. Those are the Fermat numbers minus 1 plus and the number 8, (which is the only power of 2 that's is one less than a square number). - J. Lowell, Jun 08 2021

STATUS

proposed

editing

#27 by Michel Marcus at Tue Jun 08 10:41:33 EDT 2021
STATUS

editing

proposed

Discussion
Tue Jun 15
10:26
J. Lowell: What are we waiting for before we can publish these recent edits??
#26 by Michel Marcus at Tue Jun 08 10:41:17 EDT 2021
COMMENTS

Probably yes. Those are the Fermat numbers minus 1 plus the number 8 (, which is the only power of 2 that's one less than a square number.) _ - _J. Lowell_, Jun 08 2021

STATUS

proposed

editing

Discussion
Tue Jun 08
10:41
Michel Marcus: please do not forget the - when you sign
#25 by J. Lowell at Tue Jun 08 10:13:59 EDT 2021
STATUS

editing

proposed