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 A127975 #28 Feb 26 2024 01:59:03 %S A127975 1,1,1,3,3,3,9,9,9,27,27,27,81,81,81,243,243,243,729,729,729,2187, %T A127975 2187,2187,6561,6561,6561,19683,19683,19683,59049,59049,59049,177147, %U A127975 177147,177147,531441,531441,531441,1594323,1594323,1594323,4782969,4782969,4782969 %N A127975 Repeat 3^n three times. %C A127975 a(n) is the number of functions f:[n+1]->[3] with f(1)=1 and with f(x)=f(y) whenever y=ceiling(x/3). - _Dennis P. Walsh_, Sep 06 2018 %H A127975 Vincenzo Librandi, <a href="/A127975/b127975.txt">Table of n, a(n) for n = 0..6000</a> %H A127975 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,3). %F A127975 G.f.: (1+x+x^2)/(1-3*x^3). %e A127975 a(6)=9 since there are exactly 9 functions f:[7]->[3], denoted by <f(1),f(2),...,f(7)>, with f(1)=1 and with f(x)=f(y) whenever y=ceiling(x/3). The nine functions are <1,1,1,1,1,1,1>, <1,1,1,1,1,1,2>, <1,1,1,1,1,1,3>, <1,1,1,2,2,2,1>, <1,1,1,2,2,2,2>, <1,1,1,2,2,2,3>, <1,1,1,3,3,3,1>, <1,1,1,3,3,3,2>, and <1,1,1,3,3,3,3>. - _Dennis P. Walsh_, Sep 06 2018 %p A127975 seq(3^floor(n/3),n=0..45); # _Dennis P. Walsh_, Sep 06 2018 %t A127975 CoefficientList[Series[(1+x+x^2)/(1-3*x^3), {x,0,50}], x] (* or *) Table[3^(Floor[n/3]), {n,0,50}] (* _G. C. Greubel_, Apr 30 2017 *) %o A127975 (Magma) [3^(Floor(n/3)):n in [0..50]]; // _Vincenzo Librandi_, Sep 20 2011 %o A127975 (PARI) a(n)=3^(n\3) \\ _Charles R Greathouse IV_, Oct 03 2016 %Y A127975 Cf. A108411, A111575. %K A127975 nonn,easy %O A127975 0,4 %A A127975 _Paul Barry_, Feb 09 2007 %E A127975 Edited and corrected by _R. J. Mathar_, Jun 14 2008