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 A305379 #15 Jun 13 2018 17:58:09 %S A305379 10,11,101,1000,1100,10000,10100,10110,11011,100101,101000,110000, %T A305379 110100,110110,1000011,1001010,1010010,1010100,1011011,1100011, %U A305379 1100101,1101100,10000010,10001001,10010011,10011000,10011010,10100010,10100100,10101001,11000010 %N A305379 Tribonacci representation of primes, written in base 2. %H A305379 Alois P. Heinz, <a href="/A305379/b305379.txt">Table of n, a(n) for n = 1..20000</a> %p A305379 T:= proc(n) T(n):= (<<0|1|0>, <0|0|1>, <1|1|1>>^n)[2, 3] end: %p A305379 b:= proc(n) option remember; local j; %p A305379 if n=0 then 0 %p A305379 else for j from 2 while T(j+1)<=n do od; %p A305379 b(n-T(j))+10^(j-2) %p A305379 fi %p A305379 end: %p A305379 a:= n-> b(ithprime(n)): %p A305379 seq(a(n), n=1..40); # _Alois P. Heinz_, Jun 13 2018 %Y A305379 Equals A278038(prime(n)). %Y A305379 Cf. A000073, A305377. %K A305379 nonn,base %O A305379 1,1 %A A305379 _N. J. A. Sloane_, Jun 12 2018 %E A305379 More terms from _Alois P. Heinz_, Jun 13 2018