
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given the function $f(x)=x^{-k^{2}+k+2}$ where $k \in \mathbb{Z}$ and $f(2) < f(3)$.

(1) Find the value of the real number $k$.
(2) Determine if there exists a positive number $p$ such that the function $g(x)=1-pf(x)+(2p-1)x$ has a range of $[-4, \frac{17}{8}]$ in the interval $[-1, 2]$. If it exists, find the value of $p$; otherwise, explain the reason.

Present the answer in LaTex format: \boxed{Your answer}
user