login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A030494 If n is even, 2(n/2 + 1)! - 1; if n is odd, ((n + 1)/2 + 1)! - 1. 0
1, 3, 5, 11, 23, 47, 119, 239, 719, 1439, 5039, 10079, 40319, 80639, 362879, 725759, 3628799, 7257599, 39916799, 79833599, 479001599, 958003199, 6227020799, 12454041599, 87178291199, 174356582399, 1307674367999, 2615348735999 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..28.

MATHEMATICA

Table[If[EvenQ[n], 2(n/2 + 1)! - 1, ((n + 1)/2 + 1)! - 1], {n, 40}] (* Alonso del Arte, Feb 19 2020 *)

PROG

(PARI) a(n)=if(n%2, (n\2+2)!, (n/2+1)!*2) - 1 \\ Charles R Greathouse IV, Mar 27 2020

CROSSREFS

s(n) = s(n + 1), where s = A030298.

Sequence in context: A290114 A032803 A335883 * A246491 A084361 A077229

Adjacent sequences:  A030491 A030492 A030493 * A030495 A030496 A030497

KEYWORD

nonn,easy

AUTHOR

Clark Kimberling

EXTENSIONS

Better description and more terms from Erich Friedman.

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 16 12:25 EDT 2021. Contains 347472 sequences. (Running on oeis4.)