# Greetings from The On-Line Encyclopedia of Integer Sequences! https://backiee.wasmer.app/https_oeis_org/ Search: id:a037489 Showing 1-1 of 1 %I A037489 #19 Sep 08 2022 08:44:52 %S A037489 2,9,38,153,614,2457,9830,39321,157286,629145,2516582,10066329, %T A037489 40265318,161061273,644245094,2576980377,10307921510,41231686041, %U A037489 164926744166,659706976665,2638827906662,10555311626649,42221246506598 %N A037489 Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 2,1. %H A037489 Vincenzo Librandi, Table of n, a(n) for n = 1..1000 %H A037489 Index entries for linear recurrences with constant coefficients, signature (4,1,-4). %F A037489 a(n) = 4a(n-1) + a(n-2) - 4a(n-3). %F A037489 G.f.: x*(2+x) / ( (x-1)*(4*x-1)*(1+x) ). - _R. J. Mathar_, Nov 21 2011 %t A037489 LinearRecurrence[{4,1,-4},{2,9,38},40] (* _Vincenzo Librandi_, Jun 22 2012 *) %o A037489 (Magma) I:=[2, 9, 38]; [n le 3 select I[n] else 4*Self(n-1)+Self(n-2)-4*Self(n-3): n in [1..30]]; // _Vincenzo Librandi_, Jun 22 2012 %K A037489 nonn,base,easy %O A037489 1,1 %A A037489 _Clark Kimberling_ # Content is available under The OEIS End-User License Agreement: https://backiee.wasmer.app/https_oeis_org/LICENSE