OFFSET
1,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[0, 200], DigitCount[#, 12, 5]==DigitCount[#, 12, 7]&] (* Harvey P. Dale, Jun 23 2011 *)
PROG
(PARI) base(n, b=16, s=0) = { local( a=[ n%b ]); while( 0<n\=b, a=concat( n%b, a )); if( s, s=32*s+23; Strchr( vectorsmall( #a, i, if(a[i]>9, s, 48)+a[i] )), a) }
list_A039255(MAX)=my(c=0); for(n=0, MAX, sum(k=1, #b=base(n, 12), (b[k]==5)-(b[k]==7)) & next; c++ & print1(n", ")) \\ M. F. Hasler, Sep 11 2009
(Magma) [n: n in [0..100] | Multiplicity(S, 5) eq Multiplicity(S, 7) where S is {*d: d in Intseq(n, 12)*}]; // Bruno Berselli, Oct 20 2012
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
An incorrect g.f. was deleted by N. J. A. Sloane, Sep 13 2009 (cf. A151988).
STATUS
approved