Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A119769
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A119769 a(n) = (n-1)!*sum{1<=k<=n, GCD(k,n)=1} H(k), where H(k) = sum{j=1 to k} 1/j, the k-th harmonic number. +0
1
1, 1, 5, 17, 154, 394, 8028, 38856, 490992, 2995632, 80627040, 355102560, 13575738240, 88085232000, 1686518184960, 26227674547200, 867718162483200, 5518758670387200, 309920046408806400, 2608370444213452800 (list; graph; listen)
OFFSET

1,3

MAPLE

H := proc(n::integer) RETURN( sum('1/j', j=1..n) ) ; end: A119769 := proc(n::integer) local resul, k ; resul :=0 ; for k from 1 to n do if gcd(k, n) = 1 then resul := resul+H(k) ; fi ; od : RETURN((n-1)!*resul) ; end: for n from 1 to 30 do printf("%d, ", A119769(n)) ; od: - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 21 2006

MATHEMATICA

f[n_] := (n - 1)!Sum[If[GCD[k, n] == 1, HarmonicNumber[k], 0], {k, n}]; Array[f, 21] -Robert G. Wilson v (rgwv(at)rgwv.com), Jun 20 2006

PROGRAM

; ; PLT DrScheme - Joshua Zucker (joshua.zucker@stanfordalumni.org), Jun 21 2006

; ; harmonic is the sum of reciprocals, ! has the obvious definition.

(define (A119769 n)

(* (! (sub1 n))

(apply + (map harmonic (filter (lambda (k) (= 1 (gcd n k))) (build-list n (lambda (k) (add1 k))))))))

(build-list 30 (lambda (n) (A119769 (add1 n))))

CROSSREFS

Sequence in context: A076448 A096310 A071057 this_sequence A090886 A097490 A053678

Adjacent sequences: A119766 A119767 A119768 this_sequence A119770 A119771 A119772

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Jun 19 2006

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Jun 20 2006

More terms from Robert G. Wilson v (rgwv(at)rgwv.com), R. J. Mathar (mathar(AT)strw.leidenuniv.nl) and Joshua Zucker (joshua.zucker(AT)stanfordalumni.org), Jun 20 2006

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 August 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research