This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A047462 #15 Sep 08 2022 08:44:57 %S A047462 0,1,4,8,9,12,16,17,20,24,25,28,32,33,36,40,41,44,48,49,52,56,57,60, %T A047462 64,65,68,72,73,76,80,81,84,88,89,92,96,97,100,104,105,108,112,113, %U A047462 116,120,121,124,128,129,132,136,137,140,144,145,148,152,153,156 %N A047462 Numbers that are congruent to {0, 1, 4} mod 8. %H A047462 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,1,-1). %F A047462 G.f.: x^2*(1+3*x+4*x^2)/((1-x)^2*(1+x+x^2)). [_Colin Barker_, May 13 2012] %F A047462 From _Wesley Ivan Hurt_, Jun 10 2016: (Start) %F A047462 a(n) = a(n-1) + a(n-3) - a(n-4) for n>4. %F A047462 a(n) = (24*n-33-3*cos(2*n*Pi/3)+5*sqrt(3)*sin(2*n*Pi/3))/9. %F A047462 a(3k) = 8k-4, a(3k-1) = 8k-7, a(3k-2) = 8k-8. (End) %p A047462 A047462:=n->(24*n-33-3*cos(2*n*Pi/3)+5*sqrt(3)*sin(2*n*Pi/3))/9: seq(A047462(n), n=1..100); # _Wesley Ivan Hurt_, Jun 10 2016 %t A047462 Select[Range[0, 150], MemberQ[{0, 1, 4}, Mod[#, 8]] &] (* _Wesley Ivan Hurt_, Jun 10 2016 *) %o A047462 (Magma) [n : n in [0..150] | n mod 8 in [0, 1, 4]]; // _Wesley Ivan Hurt_, Jun 10 2016 %K A047462 nonn,easy %O A047462 1,3 %A A047462 _N. J. A. Sloane_