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 A338848 #6 Nov 20 2020 15:49:22 %S A338848 1,1,0,1,2,0,0,0,0,1,2,0,2,6,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,0,2,6,0,0, %T A338848 0,0,2,6,0,6,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, %U A338848 0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,0,2,6,0,0,0,0,2,6 %N A338848 Number of compositions (ordered partitions) of n into distinct powers of 3. %H A338848 <a href="/index/Com#comp">Index entries for sequences related to compositions</a> %F A338848 a(n) = A039966(n) * A062756(n)!. - _Kevin Ryde_, Nov 14 2020 %o A338848 (PARI) a(n) = my(c=0,r); while(n, [n,r]=divrem(n,3); if(r==2,return(0)); c+=r); c!; \\ _Kevin Ryde_, Nov 14 2020 %Y A338848 Cf. A000244, A039966, A062051, A062756, A078932, A093659. %K A338848 nonn %O A338848 0,5 %A A338848 _Ilya Gutkovskiy_, Nov 11 2020