OFFSET
7,1
LINKS
FORMULA
a(n) = 6*(n^2 + n + 1) = a(n-1) + 12*n.
EXAMPLE
In octal notation "666" means 6*8*8 + 6*8 + 6 = 438.
MATHEMATICA
Table[FromDigits[{6, 6, 6}, n], {n, 7, 50}] (* or *) LinearRecurrence[{3, -3, 1}, {342, 438, 546}, 40] (* Harvey P. Dale, Apr 15 2018 *)
PROG
(PARI) a(n) = 6*(n^2 + n + 1); \\ Michel Marcus, Aug 20 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Axel Harvey, Aug 19 2006
EXTENSIONS
More terms from Michel Marcus, Aug 20 2013
STATUS
approved