OFFSET
1,1
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
MATHEMATICA
a[n_] := Sum[ Boole[ PrimeQ[d+1] ]/(d+1), {d, Divisors[2n]}] // Numerator; Table[a[n], {n, 1, 48}] (* Jean-François Alcover, Aug 10 2012 *)
PROG
(PARI)
a(n)=
{
my(bd=0);
forprime (p=2, 2*n+1, if( (2*n)%(p-1)==0, bd += 1/p; ) );
bd = numerator(bd);
return(bd);
}
/* Joerg Arndt, May 06 2012 */
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
STATUS
approved