# numbers

## Analogy between Fibonacci and Chebyshev

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

## How to Generate Random Numbers in Python?

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

## 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…

## 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…

## Binary surprise

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

## 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…

## 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.…

## 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…

## 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…

## Julka — SPOJ

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

## Autocorrelation test for independence

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

## String Calculator Kata using Eta

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

## 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…

## 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…

## 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…

## 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…