OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..382 (* All terms up to the 1 millionth heptagonal number. *)
MATHEMATICA
Select[Table[n (5n-3)/2, {n, 4000}], AllTrue[IntegerDigits[#], OddQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Feb 28 2015 *)
Select[PolygonalNumber[7, Range[2500]], AllTrue[IntegerDigits[#], OddQ]&] (* Harvey P. Dale, Dec 19 2025 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), May 03 2006
EXTENSIONS
Corrected by Harvey P. Dale, Feb 28 2015
STATUS
approved
