Article: An improved algorithm for calculating the sum-of-factorials function.

Abstract The sum of factorials function, also known as the left factorial function, is defined as !n = 0! + 1! + ... + (n - 1)!. These have been used by Smarandache and Kurepa to define the Smarandache-Kurepa Function (see reference [1], [2]). This paper presents an effective method for calculating !n, and implements the Smarandache-Kurepa function by using one new method.

1. Introduction

We define !n as 0! + 1! + ... + (n - 1)!.

A simple PARI/GP program to calculate these values is below:

sof f(n) = [n-1.summation over (i=0)]i!

Then, for(i = 0; 10, print1(","soff(i))) gives the desired output; 0, 1, 2, 4, 10, 34, 154, 874, ...

Related newspaper, magazine, and journal articles:

 
 
Newsweek Harper's Magazine The Washington Post Chicago Tribune Crain's Chicago Business PRNewswire Pediatric News The Nation Advertising Age The Economist (US) A FREE trial gives you access to over 80 million articles! Access over 6,500 publications with a FREE trial!