In number theory, a factoriangular number is an integer formed by adding a factorial and a triangular number with the same index.
Definition For n≥1, the nth factoriangular number, denoted Ftn, is defined as the sum of the nth factorial and the nth triangular number:
Ftn=n!+Tn=n!+n(n+1)2. The first few factoriangular numbers are:
These numbers form the integer sequence A101292 in the Online Encyclopedia of Integer Sequences (OEIS).
Properties
Recurrence relations Factoriangular numbers satisfy several recurrence relations. For n≥1,
Ftn+1=(n+1)(Ftn−n2−22) And for n≥2,
Ftn=n(Ftn−1−n2−2n−12) These are linear non-homogeneous recurrence relations with variable coefficients of order 1.
Generating functions The exponential generating function E(x)=∑n=0∞Ftnxnn! for factoriangular numbers is (for −1<x<1)
E(x)=2+(2−5x2+2x3+x4)ex2(1−x)2 If the sequence is extended to include Ft0=1, then the exponential generating function becomes
E(x)=2+(2x−x2−x3)ex2(1−x).
Representations as sums of triangular numbers Factoriangular numbers can sometimes be expressed as sums of two triangular numbers:
Ftn=2Tn if and only if n=1 or n=3. Ftn=Tx+Tn if and only if 8n!+1 is a perfect square. For n≠x, the only known solution is (Ft5,T15)=(135,120), giving Ft5=T5+T15. Ftn=Tx+Ty if and only if 8Ftn+2 is a sum of two squares.
Representations as sums of squares Some factoriangular numbers can be expressed as the sum of two squares. For n≤20, the factoriangular numbers that can be written as a2+b2 for some integers a and b include:
Ft1=2=12+12 Ft2=5=12+22 Ft4=34=32+52 Ft9=362,925=1952+5702 This result is related to the sum of two squares theorem, which states that a positive integer can be expressed as a sum of two squares if and only if its prime factorization contains no prime factor of the form 4k+3 raised to an odd power.
Fibonacci factoriangular numbers A Fibonacci factoriangular number is a number that is both a Fibonacci number and a factoriangular number. There are exactly three such numbers:
Ft1=2=F3 Ft2=5=F5 Ft4=34=F9 This result was conjectured by Romer Castillo and later proved by Ruiz and Luca.
Pell factoriangular numbers A Pell factoriangular number is a number that is both a Pell number and a factoriangular number. Luca and Gómez-Ruiz proved that there are exactly three such numbers: Ft1=2, Ft2=5, and Ft3=12.
Catalan factoriangular numbers A Catalan factoriangular number is a number that is both a Catalan number and a factoriangular number. The only such numbers are 1, 2 and 5. They also proved in the same paper that the only central binomial coefficients which are also factoriangular numbers are 1 and 2.
Generalizations The concept of factoriangular numbers can be generalized to (n,k)-factoriangular numbers, defined as Ftn,k=n!+Tk where n and k are positive integers. The original factoriangular numbers correspond to the case where n=k. This generalization gives rise to factoriangular triangles, which are Pascal-like triangular arrays of numbers. Two such triangles can be formed:
A triangle with entries Ftn,k where k≤n, yielding the sequence: 2, 3, 5, 7, 9, 12, 25, 27, 30, 34, ... A triangle with entries Ftn,k where k≥n, yielding the sequence: 2, 4, 5, 7, 8, 12, 11, 12, 16, 34, ... In both cases, the diagonal entries (where n=k) correspond to the original factoriangular numbers.
See also Doubly triangular number Factorial prime Fibonacci number Lazy caterer's sequence Square triangular number
References
External links Sequence A101292 in the OEIS Sequence A275928 (number of odd divisors of factoriangular numbers) in the OEIS Sequence A275929 (sum of first and last terms of runsums of length n of nth factoriangular number) in the OEIS