Alternating factorial

Alternating factorial

In mathematics, an alternating factorial is the absolute value of the alternating sum of the first "n" factorials.

This is the same as their sum, with the odd-indexed factorials multiplied by −1 if "n" is even, and the even-indexed factorials multiplied by −1 if "n" is odd, resulting in an alternation of signs of the summands (or alternation of addition and subtraction operators, if preferred). To put it algebraically,

:mathrm{af}(n) = sum_{i = 1}^n (-1)^{n - i}i!

or with the recurrence relation

:mathrm{af}(n) = n! - mathrm{af}(n - 1)

in which af(1) = 1.

The first few alternating factorials are

:1, 1, 5, 19, 101, 619, 4421, 35899, 326981, 3301819, 36614981, 442386619, 5784634181, 81393657019 OEIS|id=A005165

For example, the third alternating factorial is 1! − 2! + 3!. The fourth alternating factorial is −1! + 2! - 3! + 4! = 19. Regardless of the parity of "n", the last ("n"th) summand, "n"!, is given a positive sign, the ("n" - 1)th summand is given a negative sign, and the signs of the lower-indexed summands are alternated accordingly.

This pattern of alternation ensures the resulting sums are all positive integers. Changing the rule so that either the odd- or even-indexed summands are given negative signs (regardless of the parity of "n") changes the signs of the resulting sums but not their absolute values.

Miodrag Zivković proved in 1999 that there are only a finite number of alternating factorials that are also prime numbers, since 3612703 divides af(3612702) and therefore divides af("n") for all "n" ≥ 3612702. As of 2006, the known primes and probable primes are af("n") for OEIS|id=A001272:"n" = 3, 4, 5, 6, 7, 8, 10, 15, 19, 41, 59, 61, 105, 160, 661, 2653, 3069, 3943, 4053, 4998, 8275, 9158, 11164 Only the values up to "n" = 661 have been proved prime in 2006. af(661) is approximately 7.818097272875 × 101578.

References

*

* Yves Gallot, [http://perso.wanadoo.fr/yves.gallot/papers/lfact.pdf Is the number of primes {1 over 2}sum_{i = 0}^{n - 1} i! finite?]

* Paul Jobling, [http://listserv.nodak.edu/cgi-bin/wa.exe?A2=ind0411&L=nmbrthry&T=0&P=1106 Guy's problem B43: search for primes of form n!-(n-1)!+(n-2)!-(n-3)!+...+/-1!]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Factorial — n n! 0 1 1 1 2 2 3 6 4 24 5 120 6 720 7 …   Wikipedia

  • List of factorial and binomial topics — This is a list of factorial and binomial topics in mathematics, by Wikipedia page. See also binomial (disambiguation).*Alternating factorial *Antichain *Beta function *Binomial coefficient *Binomial distribution *Binomial proportion confidence… …   Wikipedia

  • List of mathematics articles (A) — NOTOC A A Beautiful Mind A Beautiful Mind (book) A Beautiful Mind (film) A Brief History of Time (film) A Course of Pure Mathematics A curious identity involving binomial coefficients A derivation of the discrete Fourier transform A equivalence A …   Wikipedia

  • Million — One million redirects here. For other uses, see One million (disambiguation). List of numbers – Integers 100000 1000000 10000000 Cardinal One million Abbreviation M Ordinal One millionth Roman numeral M …   Wikipedia

  • 100000 (number) — List of numbers – Integers 10000 100000 1000000 Cardinal One hundred thousand Ordinal One hundred thousandth Factorization 25 · 55 Roman numeral C Roman numeral (Unicode) …   Wikipedia

  • 10000000 (number) — For the article on the baseball player, see Ten Million. List of numbers – Integers 1000000 10000000 100000000 Cardinal Ten million Ordinal Ten millionth Factorization 27 · 57 Binary 100110001001011010000000 …   Wikipedia

  • 100000000 (number) — 100 million redirects here. For the song by Birdman, see 100 Million. One hundred million (100,000,000) is the natural number following 99999999 and preceding 100000001. List of numbers – Integers 10000000 100000000 1000000000 Cardinal One… …   Wikipedia

  • 5 (number) — This article discusses the number five. For the year 5 AD, see 5. For other uses of 5, see 5 (disambiguation). 5 −1 0 1 2 3 4 5 6 7 8 9 → List of numbers Integers …   Wikipedia

  • 101 (number) — 101 (one hundred [and] one) is the natural number following 100 and preceding 102. It is variously pronounced one hundred and one / a hundred and one , one hundred one / a hundred one , and one oh one . As an ordinal number, 101st rather than… …   Wikipedia

  • 600 (number) — For the year 600, see 600 BC or 600 AD. ← 599 601 → 600 List of numbers Integers ← …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”