|
|
A171036
|
|
In the sequence of prime numbers, replace all the '7' digits with '2' and vice versa.
|
|
3
|
|
|
7, 3, 5, 2, 11, 13, 12, 19, 73, 79, 31, 32, 41, 43, 42, 53, 59, 61, 62, 21, 23, 29, 83, 89, 92, 101, 103, 102, 109, 113, 172, 131, 132, 139, 149, 151, 152, 163, 162, 123, 129, 181, 191, 193, 192, 199, 711, 773, 772, 779, 733, 739, 741, 751, 752, 763
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
MATHEMATICA
|
FromDigits[IntegerDigits[#]/.{7->p, 2->q}/.{p->2, q->7}]&/@Prime[Range[100]] (* Vincenzo Librandi, Apr 07 2013 *)
|
|
PROG
|
(PARI) a(n)=my(v=[0, 1, 7, 3, 4, 5, 6, 2, 8, 9]); subst(Pol(apply(k->v[k+1], digits(prime(n)))), 'x, 10) \\ Charles R Greathouse IV, Jul 25 2013
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|