login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A062856 In the square multiplication table of size A062857(n), the smallest number which appears n times. 7
1, 2, 4, 6, 12, 12, 36, 60, 60, 60, 120, 120, 120, 120, 360, 360, 360, 360, 360, 360, 840, 840, 840, 840, 2520, 2520, 2520, 2520, 2520, 2520, 2520, 2520, 2520, 2520, 5040, 5040, 5040, 5040, 5040, 5040, 5040, 5040, 5040, 5040, 5040, 5040, 10080, 10080 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Smallest number to appear n times in any m X m multiplication table.
LINKS
EXAMPLE
a(7)=36 because 36 is the first product to appear in the m X m multiplication tables 7 times as m increases from 1 to infinity.
MATHEMATICA
b[1] = {1, 1}; b[n_] := b[n] = For[m = b[n-1][[1]], True, m++, T = Table[i j, {i, m}, {j, m}] // Flatten // Tally; sel = SelectFirst[T, #[[2]] >= n&]; If[sel != {}, Print[n, " ", m, " ", sel[[1]]]; Return[{m, sel[[1]]}] ]];
a[n_] := b[n][[2]];
Table[a[n], {n, 1, 50}] (* Jean-François Alcover, Mar 25 2019 *)
PROG
(Python)
from itertools import count
from collections import Counter
def A062856(n):
if n == 1: return 1
c = Counter()
for m in count(1):
for i in range(1, m):
ij = i*m
c[ij] += 2
if c[ij]>=n:
return ij
c[m*m] = 1 # Chai Wah Wu, Oct 16 2023
CROSSREFS
Sequence in context: A056793 A137387 A137394 * A056371 A271822 A067874
KEYWORD
nonn
AUTHOR
Ron Lalonde (ronronronlalonde(AT)hotmail.com), Jun 25 2001
EXTENSIONS
More terms from Don Reble, Nov 08 2001
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 1 19:22 EDT 2024. Contains 374817 sequences. (Running on oeis4.)