[go: up one dir, main page]

login
Revision History for A341090 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Fully multiplicative: for any prime p, if the reversal of p in base 10, say q, is prime, then a(p) = q, otherwise a(p) = p.
(history; published version)
#16 by Alois P. Heinz at Tue Feb 15 21:12:56 EST 2022
STATUS

editing

approved

#15 by Alois P. Heinz at Tue Feb 15 21:12:51 EST 2022
MAPLE

R:= n-> (s-> parse(cat(s[-i]$i=1..length(s))))(""||n):

a:= proc(n) option remember; mul((q->

`if`(isprime(q), q, j[1]))(R(j[1]))^j[2], j=ifactors(n)[2])

end:

seq(a(n), n=1..66); # Alois P. Heinz, Feb 15 2022

CROSSREFS
STATUS

proposed

editing

#14 by Amiram Eldar at Tue Feb 15 11:29:40 EST 2022
STATUS

editing

proposed

#13 by Amiram Eldar at Tue Feb 15 11:29:38 EST 2022
MATHEMATICA

f[p_, e_] := If[PrimeQ[(q = IntegerReverse[p])], q, p]^e; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Feb 15 2022 *)

STATUS

proposed

editing

#12 by Rémy Sigrist at Mon Feb 14 11:56:54 EST 2022
STATUS

editing

proposed

#11 by Rémy Sigrist at Sun Feb 13 12:32:12 EST 2022
LINKS

<a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

<a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

#10 by Rémy Sigrist at Sun Feb 13 12:32:01 EST 2022
LINKS

Rémy Sigrist, <a href="/A341090/a341090.png">Scatterplot of (n, a(n)) for n, a(n) <= 1000000</a>

#9 by Rémy Sigrist at Sun Feb 13 12:24:32 EST 2022
NAME

allocated Fully multiplicative: for Rémy Sigristany prime p, if the reversal of p in base 10, say q, is prime, then a(p) = q, otherwise a(p) = p.

DATA

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 31, 14, 15, 16, 71, 18, 19, 20, 21, 22, 23, 24, 25, 62, 27, 28, 29, 30, 13, 32, 33, 142, 35, 36, 73, 38, 93, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 213, 124, 53, 54, 55, 56, 57, 58, 59, 60, 61, 26, 63, 64, 155, 66

OFFSET

1,2

COMMENTS

This sequence is a self-inverse permutation of the natural numbers.

LINKS

<a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

EXAMPLE

For n = 377:

- 377 = 13 * 29,

- the reversal of 13, 31, is prime,

- the reversal of 29, 92, is not prime,

- so a(377) = 31 * 29 = 899.

PROG

(PARI) a(n) = { my (f=factor(n)); prod (k=1, #f~, my (p=f[k, 1], e=f[k, 2], q=fromdigits(Vecrev(digits(p)))); if (isprime(q), q, p)^e) }

CROSSREFS
KEYWORD

allocated

nonn,base,mult

AUTHOR

Rémy Sigrist, Feb 13 2022

STATUS

approved

editing

#8 by Rémy Sigrist at Sun Feb 13 12:24:32 EST 2022
NAME

allocated for Rémy Sigrist

KEYWORD

recycled

allocated

#7 by Andrew Howroyd at Sun Feb 13 11:30:10 EST 2022
STATUS

reviewed

approved