OFFSET
1,2
COMMENTS
REFERENCES
R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics. Addison-Wesley, Reading, MA, 1990, p. 147.
LINKS
Peter Kagey, Table of n, a(n) for n = 1..1000 (First 125 terms from Reinhard Zumkeller)
R. L. Graham, Bijection between integers and composites, Problem 1242, Math. Mag., 60 (1987), p. 180.
EXAMPLE
a(2) = 6 because the best such sequence is 2,3,6 for which the product is 36 = 6^2.
MATHEMATICA
Table[k = 0; While[Length@ # == 0 &@ Set[f, Select[Rest@ Subsets@ Range@ k, IntegerQ@ Sqrt[n (Times @@ # &[n + #])] &]], k++]; If[IntegerQ@ Sqrt@ n, k = {n}, k = n + Prepend[First@ f, 0]]; Sqrt[Times @@ k], {n, 22}] (* Michael De Vlieger, Oct 26 2016 *)
PROG
(Haskell)
a066401 = a000196 . a245530 -- Reinhard Zumkeller, Jul 25 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 25 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Jan 06 2005
More terms from Joshua Zucker, May 18 2006
STATUS
approved