|
Search: id:A133287
|
|
|
| A133287 |
|
Decimal numbers that when converted to hexadecimal produce a number that uses the same digits as the original number. |
|
+0 1
|
|
| 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; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
There are 24 numbers in all, not including single digit numbers, that produce their anagram when converted in hexadecimal.
|
|
PROGRAM
|
#include <stdio.h> #include <string.h> 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: A140042 A094249 A074836 this_sequence A142851 A053736 A142209
Adjacent sequences: A133284 A133285 A133286 this_sequence A133288 A133289 A133290
|
|
KEYWORD
|
base,easy,fini,nonn,full
|
|
AUTHOR
|
Daniel Mondot Dec 20 2007
|
|
|
Search completed in 0.002 seconds
|