login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A108161 Partial sums of the positive integers n according to the rule: if n is square then add sqrt(n) else add n. 0
0, 1, 3, 6, 8, 13, 19, 26, 34, 37, 47, 58, 70, 83, 97, 112, 116, 133, 151, 170, 190, 211, 233, 256, 280, 285, 311, 338, 366, 395, 425, 456, 488, 521, 555, 590, 596, 633, 671, 710, 750, 791, 833, 876, 920, 965, 1011, 1058, 1106, 1113, 1163, 1214, 1266, 1319 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..53.

EXAMPLE

0+1=1, 1+2=3, 3+3=6, 6+sqrt(4) = 8, ...

PROG

(PARI) lista(nn) = s=0; for(x=0, nn, if(issquare(x), s+=sqrtint(x), s+=x); print1(s, ", ")) \\ Michel Marcus, Jul 02 2017

CROSSREFS

Sequence in context: A090961 A073355 A067440 * A263349 A297211 A274605

Adjacent sequences:  A108158 A108159 A108160 * A108162 A108163 A108164

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard, Jun 13 2005

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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 9 16:50 EDT 2020. Contains 335545 sequences. (Running on oeis4.)