A256291 Numbers which have only digits 5 and 6 in base 10.
5, 6, 55, 56, 65, 66, 555, 556, 565, 566, 655, 656, 665, 666, 5555, 5556, 5565, 5566, 5655, 5656, 5665, 5666, 6555, 6556, 6565, 6566, 6655, 6656, 6665, 6666, 55555, 55556, 55565, 55566, 55655, 55656, 55665, 55666, 56555, 56556
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..8190
- Index entries for 10-automatic sequences.
Crossrefs
Programs
-
Magma
[n: n in [1..60000] | Set(IntegerToSequence(n, 10)) subset {5, 6}];
-
Magma
[n: n in [1..100000] | Set(Intseq(n)) subset {5,6}]; // :Vincenzo Librandi_, Aug 19 2016
-
Mathematica
Flatten[Table[FromDigits[#,10]&/@Tuples[{5,6},n],{n,5}]]
-
PARI
A256291(n)=vector(#n=binary(n+1)[2..-1],i,10^(#n-i))*n~+10^#n\9*5