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 A285011 #18 Jul 18 2025 16:49:39 %S A285011 7,9,77,79,97,99,777,779,797,799,977,979,997,999,7777,7779,7797,7799, %T A285011 7977,7979,7997,7999,9777,9779,9797,9799,9977,9979,9997,9999,77777, %U A285011 77779,77797,77799,77977,77979,77997,77999,79777,79779,79797,79799,79977,79979 %N A285011 Numbers with digits 7 and 9 only. %t A285011 Flatten@ Table[FromDigits /@ Tuples[{7, 9}, n], {n, 5}] (* _Giovanni Resta_, Apr 10 2017 *) %o A285011 (Magma) [n: n in [1..100000] | Set(IntegerToSequence(n, 10)) subset {7, 9}]; %o A285011 (PARI) a(n,{p=[7,9]})={my(v=binary(n+1));fromdigits(vector(#v-1,i,p[2]*v[i+1]+p[1]*!v[i+1]))} \\ _R. J. Cano_, Apr 09 2017 %o A285011 (Python) %o A285011 def a(n): return int(bin(n+1)[3:].replace('0', '7').replace('1', '9')) %o A285011 print([a(n) for n in range(1, 45)]) # _Michael S. Branicky_, Jul 09 2021 %Y A285011 Prime terms are in A020471. %Y A285011 Numbers with digits 7 and k only for k = 0 - 6 and 8 - 9: A204094 (k = 0), A276039 (k = 1), A284921 (k = 2), A143967 (k = 3), A284971 (k = 4), A284380 (k = 5), A256292 (k = 6), A256340 (k = 8), this sequence (k = 9). %K A285011 nonn,base %O A285011 1,1 %A A285011 _Jaroslav Krizek_, Apr 08 2017