login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A228774 Numbers n such that the digits of n, once written in base 16, are only the hexadecimal digits A to F. 2
10, 11, 12, 13, 14, 15, 170, 171, 172, 173, 174, 175, 186, 187, 188, 189, 190, 191, 202, 203, 204, 205, 206, 207, 218, 219, 220, 221, 222, 223, 234, 235, 236, 237, 238, 239, 250, 251, 252, 253, 254, 255, 2730, 2731, 2732, 2733, 2734, 2735, 2746, 2747, 2748 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Charles R Greathouse IV, Table of n, a(n) for n = 0..10000

EXAMPLE

2989 is BAD in base 16.

MATHEMATICA

FromDigits[#, 16]& /@ Flatten[Table[Tuples[Range[10, 15], k], {k, 1, 3}], 1]

Select[Range[3000], Min[IntegerDigits[#, 16]] > 9 &] (* T. D. Noe, Sep 04 2013 *)

PROG

(PARI) a(n)=my(d); while(n>=6^(d+1), n-=6^d++); sum(i=0, d, ((n\6^i)%6+10)<<(4*i)) \\ Charles R Greathouse IV, Sep 04 2013

CROSSREFS

Cf. A055645, A132675, A132676, A140969, A187829.

Sequence in context: A008708 A102490 A057947 * A073527 A008707 A089951

Adjacent sequences:  A228771 A228772 A228773 * A228775 A228776 A228777

KEYWORD

nonn,base,easy

AUTHOR

Jean-Fran├žois Alcover, Sep 04 2013

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 19 11:09 EST 2019. Contains 329319 sequences. (Running on oeis4.)