OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,2,-2,0,0,-1,1).
FORMULA
G.f.: -x^2*(46*x^8+24*x^7+63*x^6+39*x^5+178*x^4+21*x^3+27*x^2+6*x+1) / ((x-1)^3*(x+1)^2*(x^2+1)^2). - Colin Barker, Jan 17 2014
MATHEMATICA
drhQ[n_]:=MemberQ[{0, 1, 7}, NestWhile[Total[IntegerDigits[#]]&, n, #>9&]]; Select[ PolygonalNumber[ 7, Range[100]], drhQ] (* Harvey P. Dale, Mar 03 2024 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 11 2006
EXTENSIONS
a(1)=0 inserted by Alois P. Heinz, Mar 16 2024
STATUS
approved