OFFSET
1,2
EXAMPLE
The 4th element is a=27 with m = 3 and n = 9 because 3^9/9^3 = 27.
MAPLE
a:=proc(N) local a, m, n; for m from 1 to N do for n from 2 to N do a:=(m^n)/(n^m); if(floor(a)=a)then print(a) fi; od; od; end: # convert into set # sort set
MATHEMATICA
Take[ Select[ Union@Flatten@Table[(m^n)/(n^m), {m, 35}, {n, 2, 35}], IntegerQ[ # ] &], 21] (* Robert G. Wilson v, Nov 17 2005 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Giorgio Balzarotti and Paolo P. Lava, Nov 12 2005
STATUS
approved