login
In the triangular multiplication table of size A062859(n), the smallest number which appears n times.
5

%I #9 Oct 16 2023 23:30:00

%S 1,4,12,36,60,120,120,360,360,360,840,840,2520,2520,2520,2520,2520,

%T 5040,5040,5040,5040,5040,5040,10080,10080,27720,27720,27720,27720,

%U 55440,55440,55440,55440,55440,55440,55440,55440,55440,55440,55440

%N In the triangular multiplication table of size A062859(n), the smallest number which appears n times.

%C Smallest number to appear n times in any m X m multiplication table (excluding the numbers below the diagonals).

%e a(4)=36 because 36 is the smallest number to appear 4 times in the triangular multiplication table of size A062859(4)=18.

%o (Python)

%o from itertools import count

%o from collections import Counter

%o def A062858(n):

%o c = Counter()

%o for m in count(1):

%o for i in range(1,m+1):

%o ij = i*m

%o c[ij] += 1

%o if c[ij]>=n:

%o return ij # _Chai Wah Wu_, Oct 16 2023

%Y Cf. A027424, A062851, A062854, A062855, A062856, A062857, A062859, A000217.

%K nonn

%O 1,2

%A Ron Lalonde (ronronronlalonde(AT)hotmail.com), Jun 25 2001

%E More terms from _Don Reble_, Nov 08 2001