OFFSET
1,2
MAPLE
A033676 := proc(n) local a, d; a := 0 ; for d in numtheory[divisors](n) do if d^2 <= n then a := max(a, d) ; end if; end do: a; end proc: A163280 := proc(n, k) local r, T ; r := 0 ; for T from k^2 by k do if A033676(T) = k then r := r+1 ; if r = n then RETURN(T) ; end if; end if; end do: end proc: A164000 := proc(n) A163280(n, n) ; end proc: seq(A164000(n), n=1..60) ; # R. J. Mathar, Feb 16 2010
MATHEMATICA
nmax = 50;
pm = Prime[nmax];
selDiv[n_] := Select[Divisors[n], #^2 <= n&][[-1]];
Clear[col];
col[k_] := col[k] = Select[Range[k pm], selDiv[#] == k&];
a[n_] := col[n][[n]];
Array[a, nmax] (* Jean-François Alcover, Mar 24 2020 *)
PROG
(PARI) lista(nn) = my(v = apply(f, [1..(2*nn-1)^2]), cols = vector(nn, i, select(x->(x==i), v, 1))); vector(nn, i, cols[i][i]); \\ Michel Marcus, Jan 23 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Aug 08 2009
EXTENSIONS
Terms from a(13) on by R. J. Mathar, Feb 16 2010
STATUS
approved