A037667 Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,0.
3, 14, 56, 227, 910, 3640, 14563, 58254, 233016, 932067, 3728270, 14913080, 59652323, 238609294, 954437176, 3817748707, 15270994830, 61083979320, 244335917283, 977343669134, 3909374676536, 15637498706147, 62549994824590, 250199979298360, 1000799917193443
Offset: 1
Examples
Terms in base 4: 3, 32, 320, 3203, 32032, 320320, 3203203, 32032032, 320320320, ... .
Links
- Index entries for linear recurrences with constant coefficients, signature (4,0,1,-4).
Formula
G.f.: x*(3+2*x) / ( (x-1)*(4*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015