The primes () method gives the list of all primes. Similarly, I need a list that consists of $p^k-1$ where $p$ is a prime and $k \ge 1$. How to create this infinite list? Thank you.
| 1 | initial version |
The primes () method gives the list of all primes. Similarly, I need a list that consists of $p^k-1$ where $p$ is a prime and $k \ge 1$. How to create this infinite list? Thank you.
The primes () method gives the list of all primes. Similarly, I need a list that consists of all $p^k-1$ where $p$ is a prime and $k \ge 1$. How to create this infinite list? Thank you.
The primes () method gives the list of all primes. Similarly, I need a list (Say PP) that consists of all $p^k-1$ where $p$ is a prime and $k \ge 1$. How to create this infinite list?
Also, I want all possible finite products of elements of PP. Using this I want to understand when two such products are equal.
How to do this? Kindly share your thoughts. Thank you.
The primes () method gives the list of all primes. Similarly, I need a list (Say PP) that consists of all $p^k-1$ where $p$ is a prime and $k \ge 1$. How to create this infinite list?
Also, I want all possible finite products of elements of PP. Using this I want to understand when two such products are equal.
How to do this? Kindly share your thoughts. Thank you.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.