Home primes: Difference between revisions
Content added Content deleted
(added example and explanation of the notation) |
Thundergnat (talk | contribs) m (adjust spacing, wording tweak) |
||
Line 2: | Line 2: | ||
{{Wikipedia|Home prime}} |
{{Wikipedia|Home prime}} |
||
⚫ | |||
In number theory, the '''home prime HP(n)''' of an integer '''n''' greater than 1 is the prime number obtained by repeatedly factoring the increasing concatenation of prime factors including repetitions. |
In number theory, the '''home prime HP(n)''' of an integer '''n''' greater than 1 is the prime number obtained by repeatedly factoring the increasing concatenation of prime factors including repetitions. |
||
The traditional notation has the prefix "HP" and a postfix count of the number of iterations until the Home prime is found (if the count is greater than 0), for instance HP4(2) === HP22(1) === 211 is the same as saying home_prime(4) needs 2 iterations and is the same as home_prime(22) which needs 1 iteration, and (both) |
The traditional notation has the prefix "HP" and a postfix count of the number of iterations until the Home prime is found (if the count is greater than 0), for instance HP4(2) === HP22(1) === 211 is the same as saying home_prime(4) needs 2 iterations and is the same as home_prime(22) which needs 1 iteration, and (both) resolve to 211, a prime. |
||
Prime numbers are their own Home prime; |
Prime numbers are their own Home prime; |
||
Line 27: | Line 25: | ||
;Task |
;Task |
||
Find and show here, on this page, the Home prime iteration chains for the integers 2 through 20 inclusive. |
* Find and show here, on this page, the Home prime iteration chains for the integers 2 through 20 inclusive. |
||
;Stretch goal |
;Stretch goal |
||
Find and show the iteration chain for 65. |
* Find and show the iteration chain for 65. |
||
;Impossible goal |
;Impossible goal |
||
Show the the Home prime for HP49. |
* Show the the Home prime for HP49. |
||
;See also |
;See also |
||
Line 41: | Line 42: | ||
;* [[oeis:A037274|OEIS:A037274 - Home primes for n >= 2]] |
;* [[oeis:A037274|OEIS:A037274 - Home primes for n >= 2]] |
||
;* [[oeis:A056938|OEIS:A056938 - Concatenation chain for HP49]] |
;* [[oeis:A056938|OEIS:A056938 - Concatenation chain for HP49]] |
||
⚫ | |||
=={{header|Factor}}== |
=={{header|Factor}}== |