A Paper from 2009 found an interesting connection to the Taylor Series https://browse.arxiv.org/pdf/0709.0671.pdf
![image](https://private-user-images.githubusercontent.com/130090573/273393956-4c69a713-d087-4a16-a11c-775197d23f5b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNzgzNzAsIm5iZiI6MTcyNDA3ODA3MCwicGF0aCI6Ii8xMzAwOTA1NzMvMjczMzkzOTU2LTRjNjlhNzEzLWQwODctNGExNi1hMTFjLTc3NTE5N2QyM2Y1Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOVQxNDM0MzBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yNTMzMmUyOWU2MWY0MzNjMzk3OTc0MzE0YWZlMTI4MTczMWFhODdhYTQ0ZDFiYzA4Y2UwM2JjNGY0MGJhNGZkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.tPTnL4fRUujVoeHIpH5WUMtQvRhjTv7XlUkWlTJeeS8)
I have found a seperate function that generates these primes as well
![image](https://private-user-images.githubusercontent.com/130090573/273394028-588456b0-3bed-44d6-bd9a-64a9c062a708.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNzgzNzAsIm5iZiI6MT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NDM0MzBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNWNjODYxMzZmYThhMWNlMjYwNGQ4YTM5MTFlN2IxNjcyZTAzZmMwMDdhNTczMDEzNzNkODNjYjA5ZjUzZmY5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Mm6qujh0Bc1f4sIqevp_qNPNB5ILavoFp2_3X2AgQGs)
[ a(n) = n \cdot a(n-1) + 1 ] [ a(n) \mod p = (n \cdot a(n-1) + 1) \mod p ]
- Recursive Sequence: Each term depends on the previous term.
- Multiplicative Structure: Involves multiplication by integers.
- Addition of 1: Each term is incremented by 1.
- Defined for All Natural Numbers: The sequence is generated for all ( n ).
[ S = 1 - 1! + 2! - 3! + \ldots + (-1)^{p-1} \cdot (p-1)! ] [ S \mod p = \sum_{i=0}^{p-1} (-1)^i \cdot i! \mod p ]
Despite being fundamentally different, both ( a(n) ) and ( S ) yield the same modulo ( p ) values for prime ( p ).
..... This formula feels very similar to another interesting set of relationships:
[ u_{n+1} = -1 + (n+1)u_n ] initialized with: [ u_0 = e - 1 ] ... this (when symbolically calculated) forms:
- Integers (( n )): The index ( n ) in the sequence progression represents natural counting, starting from 0.
- The sequence generates terms that feature factorial growth when associated with the number ( e ). Specifically, the coefficient of ( e ) in each term is ( n! ), indicating that the term captures the factorial nature of ( n ), scaled by ( e ).
- The negative component in each term of the sequence signifies the total number of arrangements possible for a set of ( n ) distinct objects. These arrangements include all permutations of subsets of an ( n )-set, which is also the number of one-to-one sequences that can be formed from ( n ) distinct objects.
- The sequence for these negative components is: 1, 2, 5, 16, 65, 326, 1957, 13700, ...
The negative components can be understood as the sum of permutations of all subsets of an ( n )-set, including the empty set. This can be defined mathematically as: [ a(n) = \sum_{k=0}^{n} \frac{n!}{k!} ] This is the total number of one-to-one sequences that can be formed from ( n ) distinct objects, including sequences with zero elements (i.e., the empty set).
sequence encapsulates two distinct mathematical properties:
- Factorial Growth: The positive part of each term captures the factorial nature of ( n ), scaled by ( e ).
- Combinatorial Counting: The negative component of each term represents the total number of permutations of all subsets of an ( n )-set, following the sum ( a(n) = \sum_{k=0}^{n} \frac{n!}{k!} ).
This sequence is a fascinating blend of both exponential and combinatorial growth, making it rich for analysis in both calculus and combinatorial mathematics.