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!)
A340780 Losing positions n (P-positions) in the following game: two players take turns dividing the current value of n by either a prime power > 1 or by A007947(n) to obtain the new value of n. The winner is the player whose division results in 1. 0
1, 12, 18, 20, 28, 44, 45, 50, 52, 63, 68, 75, 76, 92, 98, 99, 116, 117, 120, 124, 147, 148, 153, 164, 168, 171, 172, 175, 188, 207, 212, 216, 236, 242, 244, 245, 261, 264, 268, 270, 275, 279, 280, 284, 292, 312, 316, 325, 332, 333, 338, 356, 363, 369, 378, 387, 388 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The game is equivalent to the game of Nim with the additional allowed move consisting of removing one object from each pile.
LINKS
MATHEMATICA
Clear[moves, los]; A003557[n_]:= {Module[{aux = FactorInteger[n], L=Length[FactorInteger[n]]}, Product[aux[[i, 1]]^(aux[[i, 2]]-1), {i, L}]]};
moves[n_] :=moves[n] = Module[{aux = FactorInteger[n], L=Length[ FactorInteger [n]]}, Union[Flatten[Table[n/aux[[i, 1]]^j, {i, 1, L}, {j, 1, aux[[i, 2]]}], 1], A003557[n]]]; los[1]=True; los[m_] := los[m] = If[PrimeQ[m], False, Union@Flatten@Table[los[moves[m][[i]]], {i, 1, Length[moves[m]]}] == {False}]; Select[Range[400], los]
CROSSREFS
Sequence in context: A360554 A325241 A072357 * A054753 A098899 A098770
KEYWORD
nonn
AUTHOR
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 16 12:41 EDT 2024. Contains 372552 sequences. (Running on oeis4.)