The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A133287 Decimal numbers that when converted to hexadecimal produce a number that uses the same digits as the original number. 1
 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 53, 371, 913, 4100, 5141, 5412, 6182, 8200, 9241, 75120, 75121, 75122, 75123, 75124, 75125, 75126, 75127, 75128, 75129, 75621, 86150, 91465, 98711, 99481 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,3 COMMENTS There are 24 numbers in all, not including single-digit numbers, that produce their anagram when converted in hexadecimal. The decimal and hexadecimal representations must have the same digits in the same proportions. For this reason a number like 1040 is not in the sequence: it is 410 in hexadecimal and thus lacks the second zero. - Alonso del Arte, Mar 04 2013 LINKS EXAMPLE 53 = 35_16; 371 = 173_16; 913 = 391_16; 4100 = 1004_16. MATHEMATICA Select[Range[0, 10000], Sort[IntegerDigits[#, 10]] == Sort[IntegerDigits[#, 16]] &] (* Alonso del Arte, Mar 04 2013 *) PROG (C++) #include #include char area1[8], area2[8]; long unsigned l; char c1[16], c2[16]; void main() { unsigned register a, b; for (l = 10; l < 100000lu; ++l) { sprintf(area1, "%lu", l); sprintf(area2, "%lx", l); if (strlen(area1) != strlen(area2)) continue; memset(c1, 0, 16); memset(c2, 0, 16); for (a = 0; b = area1[a]; ++a) ++c1[b&0xf]; for (a = 0; b = area2[a]; ++a) { if (b >= 'A') b -= 7; ++c2[b&0xf]; } for (a = 0;; ) { if (c1[a] != c2[a]) break; if (++a >= 16) printf("%s=%s(hex) ", area1, area2); } } } CROSSREFS Sequence in context: A257814 A327455 A327735 * A133377 A121535 A082743 Adjacent sequences:  A133284 A133285 A133286 * A133288 A133289 A133290 KEYWORD base,easy,fini,nonn,full AUTHOR Daniel Mondot, Dec 20 2007 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.

Last modified February 27 06:03 EST 2020. Contains 332299 sequences. (Running on oeis4.)