Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A093464
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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. +0
2
1, 1, 2, 9, 44, 265, 1854, 14833, 133498, 1334981, 14684790, 176217481, 2290827252, 32071581529, 481073722936, 7697179566977, 130852052638608, 2355336947494945, 44751402002403954, 895028040048079081 (list; graph; listen)
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 this_sequence A073478 A088369 A059388

Adjacent sequences: A093461 A093462 A093463 this_sequence 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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research