Binary representation of n if n is prime, otherwise the ternary representation of n.
A097585
Binary representation of n if n is prime, otherwise the ternary representation of n.
Terms
- a(0) =1a(1) =10a(2) =11a(3) =11a(4) =101a(5) =20a(6) =111a(7) =22a(8) =100a(9) =101a(10) =1011a(11) =110a(12) =1101a(13) =112a(14) =120a(15) =121a(16) =10001a(17) =200a(18) =10011a(19) =202a(20) =210a(21) =211a(22) =10111a(23) =220a(24) =221a(25) =222a(26) =1000a(27) =1001a(28) =11101a(29) =1010
External references
- oeis: A097585