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]}](./_assets_/eb734a37dd21ce173a46342d1cc64c92/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,
Graph of the given equation where the straight line represents Sierpiński's constant
Let r(n) denote the number of representations of
by
squares, then the Summatory Function of
has the Asymptotic expansion
,
where
is the Sierpiński constant. The above plot shows
,
with the value of
indicated as the solid horizontal line.