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!)
A327962 a(1) = 27846; thereafter a(n+1) = a(n) # n, where # is an operation that cycles through division, addition, subtraction and multiplication. 0
27846, 27846, 27848, 27845, 111380, 22276, 22282, 22275, 178200, 19800, 19810, 19799, 237588, 18276, 18290, 18275, 292400, 17200, 17218, 17199, 343980, 16380, 16402, 16379, 393096 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(26) is not an integer, so we terminate the sequence. This is the longest integer-only sequence of this type.
LINKS
EXAMPLE
a(1) = 27846
a(2) = a(1)/1 = 27846
a(3) = a(2)+2 = 27848
a(4) = a(3)-3 = 27845
a(5) = a(4)*4 = 111380
a(6) = a(5)/5 = 22276
MATHEMATICA
With[{f = {Times, Divide, Plus, Subtract}}, NestWhile[Append[#1, Apply[f[[#3]], {#1[[-1]], #2}]] & @@ {#1, #2, 1 + Mod[#2, 4]} & @@ {#1, Length[#]} &, {27846}, FreeQ[#, Rational] &, 1, Infinity, -1]] (* Michael De Vlieger, Oct 01 2019 *)
CROSSREFS
Sequence in context: A058419 A235208 A251494 * A046333 A202403 A206618
KEYWORD
nonn,fini
AUTHOR
Dmitry Kamenetsky, Oct 01 2019
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 17 12:26 EDT 2024. Contains 372600 sequences. (Running on oeis4.)