A117111 Sum of four positive heptagonal numbers A000566.
4, 10, 16, 21, 22, 27, 28, 33, 37, 38, 39, 43, 44, 49, 50, 54, 55, 58, 60, 61, 64, 66, 70, 71, 72, 75, 76, 77, 81, 82, 84, 87, 88, 90, 91, 92, 93, 96, 97, 98, 101, 102, 103, 104, 107, 108, 109, 112, 113, 114, 115, 117, 118, 120, 121, 123, 124, 125, 127, 129, 130, 132
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..2000
Programs
-
Mathematica
Module[{upto=150,max},max=Ceiling[(3+Sqrt[9+40upto])/10];Select[Total/@ Tuples[PolygonalNumber[7,Range[max]],4]//Union,#<=upto&]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 15 2016 *)
Comments