Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A086684
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A086684 n! - Sum_{i} p_i!^e_i, where n = Prod_{i} (p_i^e_i). +0
1
1, 0, 0, 20, 0, 712, 0, 40312, 362844, 3628678, 0, 479001590, 0, 87178286158, 1307674367874, 20922789887984, 0, 6402373705727962, 0, 2432902008176639876, 51090942171709434954, 1124000727777567763198, 0, 620448401733239439359986 (list; graph; listen)
OFFSET

1,4

COMMENT

a(p)=0 iff p is prime

EXAMPLE

a(6)=6!-2!-3!=720-2-6=712

MATHEMATICA

g[n_] := Plus @@ Flatten[Table[ # [[1]]! ^ # [[2]], {1}] & /@ FactorInteger[n]]; Table[n! - f[n], {n, 1, 24}]

PROGRAM

(PARI) for(i=1, 20, f=factor(i); print1(", "i!-sum(j=1, length(f[, 1]), f[j, 1]!^f[j, 2])))

CROSSREFS

Sequence in context: A084029 A008426 A055637 this_sequence A060430 A040404 A040405

Adjacent sequences: A086681 A086682 A086683 this_sequence A086685 A086686 A086687

KEYWORD

nonn

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Jul 28 2003

EXTENSIONS

Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Aug 16 2003

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 November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research