A114333 Integers K with prime sum of the first K factorials of odd numbers.
2, 3, 4, 5, 28, 32
Offset: 1
Examples
a(1) = 2 because 1! + 3! = 7 is prime. a(2) = 3 because 1! + 3! + 5! = 127 is prime. a(3) = 4 because 1! + 3! + 5! + 7! = 5167 is prime. a(5) = 28 because 1! + 3! + 5! + 7! + 9! + 11! + 13! + 15! + 17! + 19! + 21! + 23! + 25! + 27! + 29! + 31! + 33! + 35! + 37! + 39! + 41! + 43! + 45! + 47! + 49! + 51! + 53! + 55! = 12700679788669629845870127416097655693745481645117320232505943379392681647 is prime. a(6) = 32 because 1! + 3! + ... + (2*32+1)! = 1! + 3! + ... + 63! = 1983116034341975454789449189498620955194254460449807567074683265838922666583379392681647 is prime.
Programs
-
Mathematica
Select[Range[100], PrimeQ[Sum[(2 k - 1)!, {k, #}]] &] (* Giovanni Resta, Jun 14 2016 *)
Formula
Extensions
Missing a(4) = 5 and keywords fini and full added by Giovanni Resta, Jun 14 2016
Comments