login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A093464 a(1) = 1; for n>1, a(n) = n*a(n-1) -1 if n is a prime else a(n) = n*a(n-1)+ 1. 1
1, 1, 2, 9, 44, 265, 1854, 14833, 133498, 1334981, 14684790, 176217481, 2290827252, 32071581529, 481073722936, 7697179566977, 130852052638608, 2355336947494945, 44751402002403954, 895028040048079081 (list; graph; refs; listen; history; internal format)
OFFSET

1,3

MATHEMATICA

a[1] = 1; a[n_] := a[n] = (p = n*a[n - 1] - 1; If[ PrimeQ[n], p, p + 2]); Table[ a[n], {n, 20}] (from Robert G. Wilson v Apr 08 2004)

CROSSREFS

Cf. A093463.

Cf. A000166.

Sequence in context: A052881 A020071 A000166 * A196301 A184932 A073478

Adjacent sequences:  A093461 A093462 A093463 * A093465 A093466 A093467

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Apr 05 2004

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Apr 08 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 23:53 EST 2012. Contains 205689 sequences.