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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037213 Expansion of sum(n*q^(n^2), n=0..inf). 21
0, 1, 0, 0, 2, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,5

COMMENTS

Multiplicative with a(p^(2e)) = p^e, a(p^(2e+1)) = 0. - Mitch Harris Jun 09 2005.

a(n) is the square root of n if n is square, zero otherwise. - Carl R. White, May 23 2009

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 0..10000

FORMULA

Dirichlet generating function: zeta(2s-1). - Franklin T. Adams-Watters, Sep 11 2005.

a(n) = sqrt(n) * floor( cos^2(Pi * sqrt(n)) ). - Carl R. White, May 23 2009

a(n) = A000196(n)*A010052(n). - Reinhard Zumkeller, Jan 27 2010

MATHEMATICA

Table[If[IntegerQ[n^(1/2)], n^(1/2), 0], {n, 0, 100}] (* Geoffrey Critzer, Feb 21 2015 *)

PROG

(Haskell)

a037213 n = if n == r ^ 2 then r else 0  where r = a000196 n

a037213_list = zipWith (*) a010052_list a000196_list

-- Reinhard Zumkeller, Nov 09 2012

CROSSREFS

Sequence in context: A112166 A112167 A230571 * A218234 A092197 A213618

Adjacent sequences:  A037210 A037211 A037212 * A037214 A037215 A037216

KEYWORD

nonn,mult

AUTHOR

N. J. A. Sloane

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified February 20 18:41 EST 2018. Contains 299381 sequences. (Running on oeis4.)