It's simple! Just add it!

What is the first digit after the decimal in

n = 1 15 1 n n ? \displaystyle\sum_{n=1}^{15}\dfrac{1}{n^{\sqrt{n}}}?


The answer is 6.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

6 solutions

Damiann Mangan
Apr 15, 2015

Here's a solution written in python 2.x

1
2
3
>>> import math
>>> sum([1.0/(i**(math.sqrt(i))) for i in xrange(1, 16)])
1.6379964989896623

Aryan Gaikwad
Apr 16, 2015
1
2
3
4
double ans = 0;
for(int n = 1; n <= 15; n++)
    ans += 1/(Math.pow(n,Math.sqrt(n)));
System.out.println(ans);

Lu Chee Ket
Dec 1, 2015
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
1
1.375214227
1.524356839
1.586856839
1.614213026
1.626627448
1.632436172
1.635226632
1.636598374
1.637286586
1.63763822
1.637820865
1.637917163
1.637968637
1.637996499

Answer: 6 \boxed{6}

Arulx Z
Jul 5, 2015

Python one-liner -

1
sum([1.0/(x**(x**0.5)) for x in xrange(1, 16)])

Moderator note:

Simple standard approach.

Jaydee Lucero
May 28, 2015

While the summation seems to be challenging when done by hand, its corresponding code is incredibly short.

Below is a code in C.

#include    <stdio.h>
#include    <math.h>

double function(int x)
{
    return(1.0/pow((double)x, pow((double)x, 0.5))) ;
}

int main(void)
{
    double sum = 0.0 ;
    int x ;

    for(x = 1; x <= 15; x++)
        sum += function(x) ;

    printf("%lf", sum) ;

    return 0 ;
}

When the program is compiled and run, the output will be

1.637996

So the first digit after the decimal is 6 .

Pranjal Jain
May 4, 2015

Python 3.4

1
2
3
4
5
6
def g(n):
    return n**(-1*(n**0.5))
a=0
for i in range(1,16):
    a+=g(i)
print(a)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...