# Concatenation (mathematics)

*34,190*pages on

this wiki

Assessment |
Biopsychology |
Comparative |
Cognitive |
Developmental |
Language |
Individual differences |
Personality |
Philosophy |
Social |

Methods |
Statistics |
Clinical |
Educational |
Industrial |
Professional items |
World psychology |

**Statistics:**
Scientific method ·
Research methods ·
Experimental design ·
Undergraduate statistics courses ·
Statistical tests ·
Game theory ·
Decision theory

In mathematics, **concatenation** is the joining of two numbers by their numerals. That is, the concatenation of 123 and 456 is 123456. Concatenation of numbers *a* and *b* is denoted *a||b*. Relevant subjects in recreational mathematics include Smarandache-Wellin numbers, home primes, and Champernowne's constant. The convention for sequences at places such as the Online Encyclopedia of Integer Sequences is to have sequences of concatenations include as the first term a number prior to the actual act of concatenation. Therefore, care must be taken to ensure that parties discussing a topic agree either with this convention or with plain language. For example, the first term in the sequence of concatenations of increasing even numbers may be taken to be either 24, as would seem obviously correct, or simply 2, according to convention.

## Contents

[show]## CalculationEdit

The concatenation of numbers depends on the numeric base, which is often understood from context.

Given the numbers *p* and *q* in base *b*, the concatenation *p||q* is given by

where

is the number of digits of *q* in base *b*, and is the floor function.

## Vector extensionEdit

The concatenation of vectors can be understood in two distinct ways; either as a generalization of the above operation for numbers or as a concatenation of lists.

Given two vectors in , concatenation can be defined as

In the case of vectors in , this is equivalent to the above definition for numbers. The further extension to matrices is trivial.

Since vectors can be viewed in a certain way as lists, concatenation may take on another meaning. In this case the concatenation of two lists (*a*_{1}, *a*_{2}, ..., *a*_{n}) and (*b*_{1}, *b*_{2}, ..., *b*_{n}) is the list (*a*_{1}, *a*_{2}, ..., *a*_{n}, *b*_{1}, *b*_{2}, ..., *b*_{n}). Only the exact context will reveal which meaning is intended.

## See alsoEdit

## ReferencesEdit

This page uses Creative Commons Licensed content from Wikipedia (view authors). |