The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A079792 a(1) = 1, a(n) = a(n-1)/gcd(a(n-1),n) if gcd(a(n-1),n) > 1 otherwise a(n) is the concatenation of a(n-1) and n. 0
1, 12, 4, 1, 15, 5, 57, 578, 5789, 578910, 57891011, 5789101112, 578910111213, 82701444459, 27567148153, 2756714815316, 275671481531617, 27567148153161718, 2756714815316171819, 275671481531617181920 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(3) = 12/3 = 4, a(4) = 4/4 = 1, a(5) = 15, a(6) = 15/3 = 5.
MATHEMATICA
a[1] = 1; a[n_] := a[n] = Block[{b = GCD[a[n - 1], n]}, If[b > 1, a[n - 1]/b, FromDigits[ Join[ IntegerDigits[ a[n - 1]], IntegerDigits[ n]]]]]; Table[a[n], {n, 1, 20}]
CROSSREFS
Cf. A079791.
Sequence in context: A098909 A261403 A010202 * A079791 A018812 A306375
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Feb 04 2003
EXTENSIONS
Edited and extended by Robert G. Wilson v, Feb 04 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 15 10:39 EDT 2024. Contains 372540 sequences. (Running on oeis4.)