Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A133287
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 4 20:00 EST 2008. Contains 151309 sequences.


AT&T Labs Research