Quick observation: I recently noticed that Chebyshev polynomials and Fibonacci numbers have analogous formulas. The nth Chebyshev polynomial satisfies for…

Continue Reading# numbers

## How to Generate Random Numbers in Python?

The world is governed by chance. Randomness stalks us every day of our lives. …

Continue Reading## Odd numbers in Pascal’s triangle

Here’s an interesting theorem I ran across recently. The number of odd integers in the nth row of Pascal’s triangle…

Continue Reading## Formatting numbers at the command line

The utility numfmt, part of Gnu Coreutils, formats numbers. The main uses are grouping digits and converting to and from…

Continue Reading## Binary surprise

As mentioned in the previous post, the Gauss-Wantzel theorem says you can construct a regular n-gon with a straight edge…

Continue Reading## Prime numbers and Goldbach’s conjecture visualization.

isn’t it?The German mathematician G. F. B. Riemann (1826–1866) observed that the distribution of prime numbers is very closely related…

Continue Reading## Share The π: Honoring Neglected Mathematical Constants

Subsequent occurrences are fairly common. Brun’s and Meissel-Mertens ConstantsPrime numbers make an appearance in two fascinating constants we’ll discuss next.…

Continue Reading## List Comprehension in Python

List Comprehension in PythonCreating new lists from other iterablesRupesh MishraBlockedUnblockFollowFollowingMay 11, 2017List comprehensions are used for creating new lists from other…

Continue Reading## Creating functions and using lapply in R

Creating functions and using lapply in RMichael Grogan (MGCodesandStats)BlockedUnblockFollowFollowingMay 31Functions are used to simplify a series of calculations. For instance, let…

Continue Reading## Julka — SPOJ

Read the question and scratch your skull for a while thinking about some math. Maybe put a pen onto a…

Continue Reading## Autocorrelation test for independence

Autocorrelation test for independenceDHIRAJ D SBlockedUnblockFollowFollowingMay 11Autocorrelation is a characteristic of data in which the correlation between the values of…

Continue Reading## String Calculator Kata using Eta

" ++ (mkInput separators ns)) `shouldBe` sumList nsThe novelty in this test is the composition of multiple multi-character separators. Fortunately…

Continue Reading## Accurate decimal numbers in PHP

Accurate decimal numbers in PHPRudi TheunissenBlockedUnblockFollowFollowingNov 15, 2018Most web applications deal with decimal numbers at some stage — currency, coordinates, measurements, scientific arithmetic — but…

Continue Reading## How fast can you multiply really big numbers?

Using the algorithm you learned in elementary school, it takes O(n²) operations to multiply two n digit numbers. But for…

Continue Reading## Set Theory — History & Overview

Set Theory — History & OverviewPart I — What Is Set Theory & Why Is It Relevant Today?Jesus NajeraBlockedUnblockFollowFollowingJan 12The concept of infinity is ideologically far…

Continue Reading## Prime numbers in complex domains are actually quite simple

Likewise, a number in Z[√−2] is said to be divisible by another number in Z[√−2] if the result of the…

Continue Reading