Sierpiński's constant is a mathematical constant usually denoted as K. One way of defining it is as the following limit:
![{\displaystyle K=\lim _{n\to \infty }\left[\sum _{k=1}^{n}{r_{2}(k) \over k}-\pi \ln n\right]}](./4e2d934ded4d1e09bee67d6a314ee18d2c80f1b3.svg)
where r2(k) is a number of representations of k as a sum of the form a2 + b2 for integer a and b.
It can be given in closed form as:

where
is the lemniscate constant and
is the Euler-Mascheroni constant.
Another way to define/understand Sierpiński's constant is,
Let r(n) denote the number of representations of
by
squares, then the Summatory Function of
has the Asymptotic expansion
,
where
is the Sierpinski constant. The above plot shows
,
with the value of
indicated as the solid horizontal line.