login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A178674 a(n) = 3^n + 3. 6
4, 6, 12, 30, 84, 246, 732, 2190, 6564, 19686, 59052, 177150, 531444, 1594326, 4782972, 14348910, 43046724, 129140166, 387420492, 1162261470, 3486784404, 10460353206, 31381059612, 94143178830, 282429536484, 847288609446, 2541865828332, 7625597484990 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(n) is the deficiency of 3^n * 5. - Patrick J. McNab, May 27 2017
LINKS
FORMULA
a(n) = 3*(a(n-1) - 2), a(0)=4.
From R. J. Mathar, Jan 05 2011: (Start)
G.f.: ( 4-10*x ) / ( (1-3*x)*(1-x) ).
a(n) = 2*A115098(n). (End)
a(n) = 4*a(n-1) - 3*a(n-2) for n>1. - Vincenzo Librandi, May 13 2014
MATHEMATICA
Table[3^n+3, {n, 0, 40}] (* or *) CoefficientList[Series[(4-10x)/((1-x) (1-3x)), {x, 0, 30}], x] (* Vincenzo Librandi, May 13 2014 *)
PROG
(Magma)[3^n+3: n in [0..35]];
(PARI) a(n)=3^n+3 \\ Charles R Greathouse IV, Oct 07 2015
(Sage) [3^n+3 for n in range(40)] # G. C. Greubel, Jan 27 2019
(GAP) List([0..40], n -> 3^n+3); # G. C. Greubel, Jan 27 2019
CROSSREFS
Sequence in context: A056495 A351523 A263656 * A025018 A102043 A025017
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Dec 25 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 16:40 EDT 2024. Contains 371916 sequences. (Running on oeis4.)