A164095 a(n) = 2*a(n-2) for n > 2; a(1) = 5, a(2) = 6.
5, 6, 10, 12, 20, 24, 40, 48, 80, 96, 160, 192, 320, 384, 640, 768, 1280, 1536, 2560, 3072, 5120, 6144, 10240, 12288, 20480, 24576, 40960, 49152, 81920, 98304, 163840, 196608, 327680, 393216, 655360, 786432, 1310720, 1572864, 2621440, 3145728
Offset: 1
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
- Index entries for linear recurrences with constant coefficients, signature (0, 2).
Crossrefs
Programs
-
Magma
[ n le 2 select n+4 else 2*Self(n-2): n in [1..40] ];
-
Mathematica
LinearRecurrence[{0,2},{5,6},50] (* or *) With[{nn=20},Riffle[NestList[ 2#&,5,nn],NestList[2#&,6,nn]]] (* Harvey P. Dale, Aug 15 2020 *)
Comments