OFFSET
1,2
COMMENTS
We construct mirror images of numbers by placing a mirror parallel to the baseline at an acute angle and looking at them from the top of the sheet they are written on.
This defines the mirror images by fixing digits 0, 1 and 8, exchanging 2 and 5, reversing the order of the digits and ignoring leading zeros that may result.
Only entries of A080228 are admitted, because 3's, 4's, 6's, 7's and 9's do not have calculator style images.
If this combined operation on n generates an entry in A008578, n is in this sequence here.
REFERENCES
P. Giannopoulos, The Brainteasers, unpublished.
EXAMPLE
MAPLE
calcmirr := proc(n)
local L, Lm, i ;
L := convert(n, base, 10) ;
Lm := [] ;
for i from 1 to nops(L) do
if op(i, L) = 2 then
Lm := [5, op(Lm)] ;
elif op(i, L) = 5 then
Lm := [2, op(Lm)] ;
elif op(i, L) in {0, 1, 8} then
Lm := [op(i, L), op(Lm)] ;
else
return 0 ;
end if;
end do:
add(op(i, Lm)*10^(i-1), i=1..nops(Lm)) ;
end proc:
isA176356 := proc(n)
local m;
m := calcmirr(n) ;
isprime(m) or (m = 1) ;
end proc:
for n from 1 to 2001 do
if isA176356(n) then
printf("%d, ", n);
end if;
end do: # R. J. Mathar, Sep 24 2011
PROG
(PARI) isa(n)=local(r, d); while(n>0, d=n%10; if(d==2, d=5, if(d==5, d=2, if(d==3||d==4||d==6||d==7||d==9, return(0)))); r=r*10+d; n\=10); isprime(r)
\\ Franklin T. Adams-Watters. Produces sequence except for initial 1
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
P. Giannopoulos (pgiannop1(AT)yahoo.com), Apr 15 2010, Apr 22 2010
EXTENSIONS
Sequence reconstructed with a consistent interpretation of the definition. - R. J. Mathar, Sep 24 2011
Edited by N. J. A. Sloane, Oct 24 2011
STATUS
approved