Viewing posts for the category Math Problem

## Church Numerals

# Church Numerals

## Introduction

Read MoreChurch numerals are the representations of natural numbers under Church encoding. The higher-order function that represents natural number n is a function that maps any function f to its n-fold composition. In simpler terms, the "value" of the numeral is equivalent to the number of times the function encapsulates its argument.

## Josephus Problem Simulation

# Josephus Problem Simulation

## Problem description

Josephus problem is a famous theoretical problem in mathematics and computer science. It describe such a situation:

Read More