|
| |
|
|
A111065
|
|
Numbers that look the same when printed upside down.
|
|
4
| |
|
|
0, 69, 96, 609, 906, 6009, 6699, 6969, 9006, 9696, 9966, 60009, 66099, 69069, 90006, 96096, 99066, 600009, 606909, 609609, 660099, 666999, 669699, 690069, 696969, 699669, 900006, 906906, 909606, 960096, 966996, 969696, 990066, 996966, 999666
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,2
|
|
|
COMMENTS
| Numbers with 1's and 8's are excluded.
Strobogrammatic numbers (A000787) excluding the digits 1 and 8.
Apparently this sequence and A006072 have the same parity. - Jeremy Gardiner, Oct 15 2005
|
|
|
MATHEMATICA
| fQ[n_] := Block[{s = {0, 6, 9}, id = IntegerDigits[n]}, If[ Union[ Join[s, id]] == s && (id /. {6 -> 9, 9 -> 6}) == Reverse[id], True, False]]; Select[ Range[0, 10^6], fQ[ # ] &] (Robert G. Wilson v (rgwv(at)rgwv.com), Oct 11 2005)
|
|
|
PROG
| {-Haskell-} main=print$"0":concat[concat[[reverse(reverse(map f x)++z++x)|x<-y]|z<-["", "0"]]|y<-s(iterate i"6")]; f '0'='0'; f '6'='9'; f '9'='6'; i('0':x)='6':x; i('6':x)='9':x; i('9':x)='0':i x; i""="6"; s(x:y@(z:_))=let w:v=s y in if length x==length z then(x:w):v else[x]:w:v
|
|
|
CROSSREFS
| Cf. strobogrammatic numbers A000787. If 8's are included we get A111156.
Sequence in context: A039434 A043257 A044037 * A004237 A004238 A039541
Adjacent sequences: A111062 A111063 A111064 * A111066 A111067 A111068
|
|
|
KEYWORD
| base,easy,nonn
|
|
|
AUTHOR
| Paul Stoeber (pstoeber(AT)uni-potsdam.de), Oct 08 2005
|
| |
|
|