|
|
A171093
|
|
a(n) is the string of integers S(n) concatenated together with no commas, where S(1)=1; for even n, S(n) = S(n-1),n; and for odd n>1, S(n) is obtained by adding 1 to every entry of S(n-1) and appending 1.
|
|
1
|
|
|
1, 12, 231, 2314, 34251, 342516, 4536271, 45362718, 564738291, 56473829110, 6758493102111, 675849310211112, 78695104113122131, 7869510411312213114, 897106115124133142151, 89710611512413314215116
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
MATHEMATICA
|
f[n_] := Block[{k, l}, If[ OddQ@ n, k = 2; l = {1}, k = 1; l = {}]; FromDigits@ Flatten@ Join[ Table[{IntegerDigits[ Floor[n/2] - j + k], IntegerDigits[n - Floor[n/2] + j]}, {j, Floor[n/2]}], l]]; Array[f, 16] (* Robert G. Wilson v, Sep 25 2010 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|